Perl-Sensitive Sunglasses | |
PerlMonks |
Re: u+ fails to force scalar context to empty list assignment: +( () = ... )by LanX (Saint) |
on Mar 12, 2019 at 01:53 UTC ( [id://1231146]=note: print w/replies, xml ) | Need Help?? |
> Interesting (I expected a compilation error here, similar as with number predecrement, e.g. --5): hmm me too. My theory is that the scalar aassign in the concise output returns a modifiable value, but that the compiler "forgot" to moan here. That's probably an implementation detail that might change in the future and break this code.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|