Acme-DoOrDie
view release on metacpan or search on metacpan
lib/Acme/DoOrDie.pm view on Meta::CPAN
just the return value to distinguish a file-not-found condition from a
successful invocation of a file that ends with these two statements:
$! = ENOENT;
undef;
(The L<autodie> module can't help you since it doesn't support the
C<do> function.)
This module provides the replacement function C<do_or_die> that reports
any error by throwing an exception. The same function is also available
under the alias C<do> (not exported by default).
=head1 EXPORTS
=over
=item By default:
=over
( run in 0.422 second using v1.01-cache-2.11-cpan-8d75d55dd25 )