Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: if statement confusion

by toolic (Bishop)
on Jun 11, 2012 at 14:15 UTC ( #975575=note: print w/replies, xml ) Need Help??


in reply to if statement confusion

B::Deparse (Tip # 6 from Basic debugging checklist)
perl -MO=Deparse -e '6 < 8 ? $ans = "true" : $ans = "false";' ($ans = 'true') = 'false';

Try:

$ans = 6 < 8 ? "true" : "false";
Conditional Operator

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://975575]
help
Chatterbox?
[Corion]: A good morning to everybody!
[Lady_Aleena]: Morning Corion.
[Corion]: I spent yesterday evening (and early night) in VR in Vanishing Realms, and can really recommend it
Discipulus is a very sad mornig anyway..
[Corion]: The title/"cover" image doesn't convey the comic/painted style, and the gameplay is really diverse, especially for a VR game

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2017-05-23 07:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?