Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: and vs &&

by imrags (Monk)
on Feb 12, 2009 at 08:34 UTC ( [id://743246]=note: print w/replies, xml ) Need Help??


in reply to and vs &&

when i type this
perl -e 'my $a=(1 == 1) && (0);print "$a\n";'
it gives me error:
print was unexpected at this time.
I'm using perl 5.10.0 (activestate) on WinXP :( (yes, i use Windows with perl)
Raghu

Replies are listed 'Best First'.
Re^2: and vs &&
by ikegami (Patriarch) on Feb 12, 2009 at 13:08 UTC
    your shell uses double-quotes to quote arguments.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 14:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found