"be consistent" | |
PerlMonks |
perlman:lib:Errnoby root (Monk) |
on Dec 23, 1999 at 00:49 UTC ( [id://1108]=perlfunc: print w/replies, xml ) | Need Help?? |
lib:ErrnoSee the current Perl documentation for lib:Errno. Here is our local, out-dated (pre-5.6) version: Errno - System errno constants
use Errno qw(EINTR EIO :POSIX);
use Errno; unless (open(FH, "/fangorn/spouse")) { if ($!{ENOENT}) { warn "Get a wife!\n"; } else { warn "This path is barred: $!"; } }
AUTHORGraham Barr <gbarr@pobox.com>
COPYRIGHTCopyright (c) 1997-8 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. |
|