Syntactic Confectionery Delight | |
PerlMonks |
Re^2: Is this the most elegant way to code directory lookup?by davorg (Chancellor) |
on Sep 29, 2006 at 15:20 UTC ( [id://575549]=note: print w/replies, xml ) | Need Help?? |
die "Error:$!" unless (-d $srcdir && -d $destdir ); As I mentioned before, $! won't have anything useful in it at this point, so there's no reason to include it in the error message. Why not make the error messages a little clearer.
Update: Looks like I'm wrong.
-- <http://dave.org.uk> "The first rule of Perl club is you do not talk about
Perl club."
In Section
Seekers of Perl Wisdom
|
|