in reply to Re: who am I?
in thread who am I?

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

Replies are listed 'Best First'.
Re^3: who am I?
by NateTut (Deacon) on Sep 24, 2008 at 20:10 UTC
    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];