summaryrefslogtreecommitdiff
path: root/lib/splain
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters.nicoh.com>1996-01-01 23:10:37 +0000
committerAndy Dougherty <doughera.lafayette.edu>1996-01-01 23:10:37 +0000
commit5469bf34a685cbdbdaced8ec7744174346e95ee4 (patch)
treecb7b765d9260a466594faba648f80ba0a0ca86f8 /lib/splain
parent6f48387a45abfd82047243df8cef453f08b23648 (diff)
downloadperl-5469bf34a685cbdbdaced8ec7744174346e95ee4.tar.gz
Fix some old typos.
Diffstat (limited to 'lib/splain')
-rwxr-xr-xlib/splain9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/splain b/lib/splain
index 073a456c81..f40c51e030 100755
--- a/lib/splain
+++ b/lib/splain
@@ -1,6 +1,6 @@
#!/usr/local/bin/perl
eval 'exec perl -S $0 ${1+"$@"}'
- if $0;
+ if 0;
use Config;
$diagnostics::PODFILE= $Config{privlib} . "/pod/perldiag.pod";
@@ -406,16 +406,17 @@ sub warn_trap {
if (caller eq $WHOAMI or !splainthis($warning)) {
print STDERR $warning;
}
- &$oldwarn if $oldwarn and $oldwarn ne \&warn_trap;
+ &$oldwarn if defined $oldwarn and $oldwarn and $oldwarn ne \&warn_trap;
};
sub death_trap {
my $exception = $_[0];
splainthis($exception);
if (caller eq $WHOAMI) { print STDERR "INTERNAL EXCEPTION: $exception"; }
- &$olddie if defined $olddie and $olddie ne \&death_trap;
+ &$olddie if defined $olddie and $olddie and $olddie ne \&death_trap;
$SIG{__DIE__} = $SIG{__WARN__} = '';
- confess "Uncaught exception from user code:\n\t$exception Bailing out";
+ local($Carp::CarpLevel) = 1;
+ confess "Uncaught exception from user code:\n\t$exception";
# up we go; where we stop, nobody knows, but i think we die now
# but i'm deeply afraid of the &$olddie guy reraising and us getting
# into an indirect recursion loop