Keep It Simple, Stupid | |
PerlMonks |
Re: Perl debug. How do I find calling line number?by Corion (Patriarch) |
on Sep 26, 2004 at 10:04 UTC ( [id://393913]=note: print w/replies, xml ) | Need Help?? |
It sounds to me like Carp and its replacement for die, croak is what you really want here. croak dies "at the place of call" instead of within your module. The source code of Carp.pm should also tell you how to get the information about the line number out of perl. perldoc -f caller also tells you how to get this information yourself.
In Section
Seekers of Perl Wisdom
|
|