sorry?
> x= seems doing the same in all three cases - it asks @_ to be a scalar.
which is correct and documented.
Anyway it might be an implementation flow that you sometimes don't get a warning or compilation error, but not a very serious one.
I don't see the point discussing it further, since you have plenty of possibilities to achieve your goal in a much saner way.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re^5: ... for (@_) x= 2; (scalar assignment)
by LanX
in thread ... for (@_) x= 2;
by rsFalse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |