Lexical-Failure
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.
( run in 0.616 second using v1.01-cache-2.11-cpan-49f99fa48dc )