Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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?
[robby_dobby]: Jerry spaniel seinfeld? /o\
[shmem]: not Jerry, mine is a she-dog
[robby_dobby]: I'm not an animal person, but these 2 gun dogs make me think what they'd be like as therapy dogs
LanX will call his next dog Mutator
[shmem]: Despina
[LanX]: food's closing. ...
[LanX]: hot dog!

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2017-12-15 19:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (442 votes). Check out past polls.

    Notices?