Do you know where your variables are? | |
PerlMonks |
(tye)Re2: Weird syntax questionby tye (Sage) |
on Aug 23, 2001 at 02:42 UTC ( [id://107185]=note: print w/replies, xml ) | Need Help?? |
Good point. Both operands to an "or" are expressions, not statements, so you can't parse "print 1 if $x or print 0" as "( print 1 if $x ) or print 0" since "print 1 if $x" is not a valid expression (since "if" is a statement modifier). - tye (but my friends call me "Tye")
In Section
Seekers of Perl Wisdom
|
|