PerlPowerTools
view release on metacpan or search on metacpan
# Class data.
BEGIN {
$ERROR = 0;
}
# Simple throw/catch error handling.
sub throw {
my $self = shift;
$@ = join '', @_;
$@ .= sprintf " at %s line %d\n", (caller)[1..2] unless $@ =~ /\n\z/;
goto CATCH;
}
# Prints a prompt message and returns response.
{
my $TERM;
sub prompt {
unless ($TERM) {
# From commit 5c9f32cb374a034c1ad4b9e02a9b9ee2014b9b5c:
#
( run in 0.354 second using v1.01-cache-2.11-cpan-a3c8064c92c )