no strict 'refs';
return $! == &$errname;
}
- require Carp;
- Carp::confess("No errno $errname");
-}
+ return "";
+}
sub STORE {
require Carp;
while(($k,$v) = each %Errno::) {
my $proto = prototype("Errno::$k");
last if (defined($proto) && $proto eq "");
-
}
$k
}
defined in your system C<errno.h> include file. It has a single export
tag, C<:POSIX>, which will export all POSIX defined error numbers.
-C<Errno> also makes C<%!> magic such that each element of C<%!> has a non-zero
-value only if C<$!> is set to that value, eg
+C<Errno> also makes C<%!> magic such that each element of C<%!> has a
+non-zero value only if C<$!> is set to that value, eg
use Errno;
}
}
+If a specified constant C<EFOO> doesn't exist on the system, C<$!{EFOO}>
+has a false value. You may use C<exists $!{EFOO}> to check whether the
+constant is available on the system.
+
=head1 AUTHOR
Graham Barr <gbarr@pobox.com>