Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Flag variables

by BrowserUk (Patriarch)
on Mar 03, 2003 at 16:37 UTC ( [id://240067]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %lookup = ( 
        foo=>\&fooaction, 
    ...
    else {
        #do the default or exception handling here.
    }
    
  2. or download this
    &{ $lookup{$var} || $default_subref }->( parms );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-03-29 11:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found