Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^3: A list assignment gotcha (Updated)by LanX (Saint) |
on Jul 30, 2020 at 14:48 UTC ( [id://11120069]=note: print w/replies, xml ) | Need Help?? |
Hi > A bit trickier than I originally thought. I was about to update that one needs :lvalue and returning a tied scalar then. Surprised you made it without tie , my last use case must have been different than. :)
update> You can use [3, 2, 1] on the RHS, as well. Nice! :) > on both the listifier and constructor. Genius!!! that's how you avoided using Tie::Scalar! :)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|