in reply to Perl Script, Know Thyself?

See $0 in perlvar.

Also see FindBin. (but note)

Also, it turns out that there is an entry for this in our Categorized Questions and Answers library:
How do I get the full path to the script executing?

A word spoken in Mind will reach its own level, in the objective world, by its own weight

Replies are listed 'Best First'.
Re^2: Perl Script, Know Thyself?
by merlyn (Sage) on Apr 14, 2007 at 21:07 UTC