Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: why use a coderef?

by cLive ;-) (Parson)
on Jun 25, 2007 at 22:11 UTC ( #623269=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($var eq 'one') 
    { 
    ...
    {
        die "Invalid \$var"; 
    }
    
  2. or download this
    my %subs = ( one => \&subOne,
                 two => \&subTwo,
    ...
    {
        die "Invalid \$var";
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2015-08-28 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (339 votes), past polls