Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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"

Replies are listed 'Best First'.
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2017-03-24 04:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (295 votes). Check out past polls.