Lexical-Failure
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Lexical/Failure.pm view on Meta::CPAN
return 1/$n**2;
}
sub load_file {
my ($filename) = @_;
fail 'No such file: ', $filename
if ! -r $filename;
local (@ARGV, $/) = $filename;
return readline;
}
=head1 DESCRIPTION
This module sets up two new keywords: C<fail> and C<ON_FAILURE>,
with which you can quickly create modules whose failure signaling
is lexicially scoped, under the control of client code.
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.662 second using v1.00-cache-2.02-grep-82fe00e-cpan-da92000dfeb )