raz0rblade
11-23-2002, 08:21 PM
in php to choose a option i would use
if($option==1) {
else if($option==2) {
echo "blah blah"; }
else { print "None Selected !"; } }
but how would i do this in perl ? i have a menu and the user selectes one and the number is read from stdin and then it needs to determine what to print based on it. if none of them match it print "invalid option";. Any help on this ?
if($option==1) {
else if($option==2) {
echo "blah blah"; }
else { print "None Selected !"; } }
but how would i do this in perl ? i have a menu and the user selectes one and the number is read from stdin and then it needs to determine what to print based on it. if none of them match it print "invalid option";. Any help on this ?