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

Re: What difference do the brackets make?

by Anarion (Hermit)
on Dec 11, 2002 at 09:15 UTC ( [id://219037]=note: print w/replies, xml ) Need Help??


in reply to What difference do the brackets make?

That's not the same, try this code:
perl -le 'print print(0>1) ? "true ???!!!" : "is false"'

and then

perl -le 'print print 0>1 ? "true ???!!!" : "is false"'


On the first, ? evaluates the return value of print, the second the condition 0>1.

$anarion=\$anarion;

s==q^QBY_^=,$_^=$[x7,print

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2025-07-07 23:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.