Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Finding the name of the target of a coderef

by kwaping (Priest)
on Apr 14, 2005 at 22:52 UTC ( [id://448004]=note: print w/replies, xml ) Need Help??


in reply to Finding the name of the target of a coderef

This may seem simplistic, but if the sub normally takes arguments, you could just:
return '&foo' unless shift;
Or something similar. Then just dereference the reference and run the sub without arguments.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://448004]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-26 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found