in reply to Re^3: At which line number did the print statement occure?
in thread At which line number did the print statement occure?
$0 and __FILE__ are subtly different. $0 will only ever contain the name of the program that is running. If the program calls code in other files (modules, for example) then __FILE__ will have different values.
These values are documented in the section on "Special Literals" in perldata.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: At which line number did the print statement occure?
by Sartak (Hermit) on Oct 13, 2006 at 17:32 UTC | |
by ikegami (Patriarch) on Oct 13, 2006 at 17:54 UTC |