p4raw-id: //depot/perl@5128
# each function call on the stack.
sub longmess {
- require Carp::Heavy;
+ { local $@; require Carp::Heavy; } # XXX fix require to not clear $@?
goto &longmess_heavy;
}
# you always get a stack trace
sub shortmess { # Short-circuit &longmess if called via multiple packages
- require Carp::Heavy;
+ { local $@; require Carp::Heavy; } # XXX fix require to not clear $@?
goto &shortmess_heavy;
}