Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: using a sub routing as an argument

by broquaint (Abbot)
on Jun 23, 2004 at 02:36 UTC ( #368926=note: print w/ replies, xml ) Need Help??


in reply to using a sub routing as an argument

This is a perfect opportunity to take advantage of can e.g

&$_ for map { __PACKAGE__->can($_) || () } @ARGV;
That map provides the for with a list of subroutines that exist in the current package whose names correspond to the values in @ARGV.
HTH

_________
broquaint


Comment on Re: using a sub routing as an argument
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-08-31 09:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls