though, I would use this solution only for code I could not change, never for new code!sub wexit (;$) { my $status = shift; my ($package, $fn, $line) = caller; print STDERR "exit status $status at $fn line $line\n"; CORE::exit($status) } *CORE::GLOBAL::exit = \&wexit;
In reply to Re: Exit With Line Number
by salva
in thread Exit With Line Number
by PerlBear
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |