Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Getopt::Long subroutine usage

by William G. Davis (Friar)
on Jan 05, 2005 at 02:26 UTC ( [id://419500]=note: print w/replies, xml ) Need Help??


in reply to Getopt::Long subroutine usage

The sub {...} thing returns a reference to an anonymous subroutine. You can take a reference to any subroutine, though, using the backslash operator and the ampersand, like this:

my $sub_ref = \&subroutineName;

See perlreftut and perlref for more information.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-23 15:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found