Perl-Sensitive Sunglasses | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Update: Looks like I'm wrong. I disagree: just because someone tried it once and got a useful error message doesn't change the fact that $! is not documented to be defined at this point. $! may well get set differently (or not at all) in different circumstances, when testing different files, or on a different O/S, or depending on phase of the moon for all we know. Your suggested clearer error messages are definitively more correct; the only change I might make (at the risk of getting too clever) is to avoid the duplication with something like:
Hugo In reply to Re^3: Is this the most elegant way to code directory lookup?
by hv
|
|