in reply to Re^5: ... for (@_) x= 2; (scalar assignment)
in thread ... for (@_) x= 2;
It's not an edge case. It's consistent with all `OP=` operators.
The reason is simple: You can't evaluate an expression as a boolean and as a list.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: ... for (@_) x= 2; (scalar assignment)
by LanX (Saint) on Dec 29, 2015 at 15:17 UTC | |
by ikegami (Patriarch) on Dec 29, 2015 at 20:03 UTC |