Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: input switch

by larryk (Friar)
on Sep 06, 2002 at 14:30 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://195649]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-26 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found