in reply to input 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 |