Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: input switch

by larryk (Friar)
on Sep 06, 2002 at 14:30 UTC ( #195649=note: print w/ replies, xml ) Need Help??


in reply to input switch

You could use Switch:

use Switch; switch ($CGI->param('action')) { case 'delayed_inv' { $to_do->delayedinv() } case 'del_inv' { $to_do->del_inv() } case 'payed' { $to_do->payed() } ... else { $to_do->defscreen() } }
   larryk                                          
perl -le "s,,reverse killer,e,y,rifle,lycra,,print"


Comment on Re: input switch
Download Code
Re^2: input switch
by Aristotle (Chancellor) on Sep 07, 2002 at 00:25 UTC
    The problem with that module is that it's a source filter and easily malfunctions. For any than the simplest scripts, it won't work.

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2014-07-30 05:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls