From: Jeff King Date: Mon, 14 Jun 2010 07:10:46 GMT Subject: Re: [PATCH] Git.pm: better error message Message-ID: <20100614071046.GA5639@sigill.intra.peff.net> In-Reply-To: <1276477222-21465-1-git-send-email-book@cpan.org> On Mon, Jun 14, 2010 at 03:00:22AM +0200, Philippe Bruhat (BooK) wrote: > -d doesn't set $! if the directory doesn't exist Really? $ perl -e '-d "bogus" or die "fail: $!"' fail: No such file or directory at -e line 1. On the other hand: $ touch file perl -e '-d "file" or die "fail: $!"' fail: at -e line 1. So perhaps it is best not to rely on $!. Also, this is with perl 5.10. Is it different with other versions? -Peff