Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Finding the name of the target of a coderef

by kwaping (Priest)
on Apr 14, 2005 at 22:52 UTC ( #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? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2022-08-11 00:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?