We don't bite newbies here... much | |
PerlMonks |
Re^8: ... for (@_) x= 2; (scalar assignment)by ikegami (Patriarch) |
on Dec 29, 2015 at 20:03 UTC ( [id://1151403]=note: print w/replies, xml ) | Need Help?? |
Ah, ok. I know three cases where parens matter (aside from when they override precedence or disambiguate syntax):
I think there's another one. For the first two, it was either that or create a new operator. No other operators behave differently based on whether one their operand is list-like or not. It's a pity = and x didn't adopt the same definition of list-like, but then again, one expects lvalues and the other expects rvalues.
In Section
Seekers of Perl Wisdom
|
|