$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
In reply to Re^4: At which line number did the print statement occure?
by davorg
in thread At which line number did the print statement occure?
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |