KSURi has asked for the wisdom of the Perl Monks concerning the following question:

Hello, Monks!
I am interested to know how can I write a sub that will return me its own name?

Replies are listed 'Best First'.
Re: The sub which gets its own name
by Joost (Canon) on Mar 07, 2008 at 19:21 UTC
      tnx a lot, I knew about caller function, just didn't guess to pass 0 as the argument)
        Guess?! perldoc -f caller