[OT] What's my name?

Matt S Trout dbix-class at trout.me.uk
Wed Oct 8 12:14:26 BST 2008


On Tue, Oct 07, 2008 at 05:27:37PM +0100, Nicholas Clark wrote:
> 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.

I'm not sure the information you want exists outside of the GV2RV op.

Figuring out which one of those you got called with is left as an exercise
to those with more crack handy.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/


More information about the london.pm mailing list