U
usenet
If I "die" a script, Perl tells me which line number it died on. So, I
presume, Perl is keeping track of that somehow.
I'm developing a script that is logging diagnostic messages. I would
like to include the line number that the message was logged from. I
thought I might find a "special character" such as $. that stores the
current line being executed... but, alas, I didn't spot such a special
character in my quickref.
Perl seems to "know" what line it's processing (because of the behavior
of 'die'). Can I access this bit of information?
presume, Perl is keeping track of that somehow.
I'm developing a script that is logging diagnostic messages. I would
like to include the line number that the message was logged from. I
thought I might find a "special character" such as $. that stores the
current line being executed... but, alas, I didn't spot such a special
character in my quickref.
Perl seems to "know" what line it's processing (because of the behavior
of 'die'). Can I access this bit of information?