Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: if else in the other way

by snoopy (Deacon)
on Oct 04, 2010 at 23:41 UTC ( #863472=note: print w/replies, xml ) Need Help??


in reply to if else in the other way

Another way:
print qw(no yes)[$a == 6]

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://863472]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2016-12-05 20:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (91 votes). Check out past polls.