in reply to The sub which gets its own name

sub bla { (caller(0))[3] };

Replies are listed 'Best First'.
Re^2: The sub which gets its own name
by KSURi (Monk) on Mar 07, 2008 at 23:21 UTC
    tnx a lot, I knew about caller function, just didn't guess to pass 0 as the argument)
      Guess?! perldoc -f caller
        I believe he meant it didn't occur to him that caller could return such a thing.