in reply to Re: Is this the most elegant way to code directory lookup?
in thread Is this the most elegant way to code directory lookup?

Not sure why you're including the value of $! in that error message. It won't contain a value at that point.
I thought that, too. I tested it, however, and

$ perl -e '-e q{non-existent} or die $!;' No such file or directory at -e line 1. $

Cheers,

JohnGG