in reply to who am I?

The name of the program is in $0, and the path can be found with FindBin.

Replies are listed 'Best First'.
Re^2: who am I?
by Lawliet (Curate) on Sep 24, 2008 at 19:37 UTC

    I have read that $0 also gives the path on some operating systems. Maybe it was in an outdated book ",

    I'm so adjective, I verb nouns!

    chomp; # nom nom nom

      Yes it does include the path. I use the following to get just the base file name of the program:
      use File::Basename; my $MyName = (fileparse($0, '\..*'))[0];