[OT] What's my name?

Nicholas Clark nick at ccl4.org
Tue Oct 7 17:27:37 BST 2008

In this code:

    *beer = *buffy = *pie = *kittens = sub {

is there an easy way for the subroutine to know what name it was called as.
If it makes it easier, the subroutine is actually going to be a method.

caller gives __ANON__, because, after all, that was the name the subroutine
had when it was compiled.

Nicholas Clark

PS For the purposes of this exercise, beer should be considered to include
   Cidah!, because both have the same rate of excise duty.

More information about the london.pm mailing list