Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Simple IF, IF, IF or ELSE

by traveler (Parson)
on Jun 28, 2006 at 21:49 UTC ( [id://558161]=note: print w/replies, xml ) Need Help??


in reply to Simple IF, IF, IF or ELSE

And just to emphazise TIMTOWTDI:
$drink = 'unknown'; $drink = 'non alky' if $punter eq 'coffee'; $drink = 'alky' if $punter eq 'beer'; $drink = 'proper alky' if $punter eq 'whisky'
or (kind of ugly)
$drink = $punter eq 'coffee'?'non alky':$punter eq 'beer'?'alky':$punt +er eq 'whisky'?'proper alky':'unknown';

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-03-29 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found