Sprad has asked for the wisdom of the Perl Monks concerning the following question:
Is it possible to get the line number of the currently running program? I'm doing some logging and it would be useful to include line numbers (and filenames too, if possible) within the log. warn gives both, but I need to fit that info into my own log lines.
---
A fair fight is a sign of poor planning.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Line Numbers
by BazB (Priest) on Oct 17, 2003 at 21:15 UTC | |
Re: Line Numbers
by hey_david (Sexton) on Oct 17, 2003 at 21:26 UTC | |
Re: Line Numbers
by sweetblood (Prior) on Oct 17, 2003 at 21:20 UTC | |
by davido (Cardinal) on Oct 17, 2003 at 21:42 UTC | |
by BrowserUk (Patriarch) on Oct 17, 2003 at 22:37 UTC | |
by liz (Monsignor) on Oct 18, 2003 at 20:46 UTC | |
by Anonymous Monk on Oct 17, 2003 at 21:33 UTC | |
by BazB (Priest) on Oct 17, 2003 at 21:27 UTC | |
by vek (Prior) on Oct 18, 2003 at 20:29 UTC |
Back to
Seekers of Perl Wisdom