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.