Archive-TarGzip
view release on metacpan or search on metacpan
t/Archive/File/Package.pm view on Meta::CPAN
if( @import ) {
####
# Import does not work correctly when running under eval. Import
# uses the caller stack to determine way to stuff the symbols.
# The eval messes with the stack. Since not using an eval, need
# to double check to make sure import does not die.
####
# Poor man's eval where trap off the Carp::croak function.
# The Perl authorities have Core::die locked down tight so
# it is next to impossible to trap off of Core::die. Lucky
# must everyone uses Carp::croak instead of just dieing.
#
# Anyway, get the benefit of a lot of stack gyrations to
# formulate the correct error msg by Exporter::import.
#
$error = '';
no warnings;
*Carp::carp = sub {
$error .= (join '', @_);
t/Archive/TarGzip.t view on Meta::CPAN
=head1 comment_out
###
# Have been problems with debugger with trapping CARP
#
####
# Poor man's eval where the test script traps off the Carp::croak
# Carp::confess functions.
#
# The Perl authorities have Core::die locked down tight so
# it is next to impossible to trap off of Core::die. Lucky
# must everyone uses Carp to die instead of just dieing.
#
use Carp;
use vars qw($restore_croak $croak_die_error $restore_confess $confess_die_error);
$restore_croak = \&Carp::croak;
$croak_die_error = '';
$restore_confess = \&Carp::confess;
$confess_die_error = '';
no warnings;
( run in 0.464 second using v1.01-cache-2.11-cpan-49f99fa48dc )