ExtUtils-SVDmaker
view release on metacpan or search on metacpan
t/ExtUtils/SVDmaker/expected/File/Package.pm view on Meta::CPAN
87888990919293949596979899100101102103104105106107# 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
''
,
@_
);
$error
.=
"\n"
unless
substr
(
$error
,-1,1) eq
"\n"
;
};
*Carp::croak
=
sub
{
$error
.= Carp::longmess (
join
''
,
@_
)
if
$error
;
$error
.=
"\n"
unless
substr
(
$error
,-1,1) eq
"\n"
;
( run in 0.547 second using v1.01-cache-2.11-cpan-05444aca049 )