bprew has asked for the wisdom of the Perl Monks concerning the following question:
Hey,
I was wondering if there was a way to print the current line of the script when printing error messages. I currently use __LINE__.. but I was looking for something shorter. Can I override __DIE__ or warn and if so, how?
Thanks!
--
Ben
"Naked I came from my mother's womb, and naked I will depart."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(bbfu) Re: Lines in error messages
by bbfu (Curate) on Oct 25, 2002 at 02:28 UTC | |
|
Re: Lines in error messages
by PodMaster (Abbot) on Oct 25, 2002 at 02:44 UTC | |
by bprew (Monk) on Oct 25, 2002 at 05:07 UTC |