in reply to Re^2: A list assignment gotcha
in thread Not understanding 2 sentences in perldoc
> 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. :)
> 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
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: A list assignment gotcha (Updated)
by jcb (Parson) on Jul 31, 2020 at 01:32 UTC | |
by LanX (Saint) on Jul 31, 2020 at 02:20 UTC | |
by jcb (Parson) on Aug 01, 2020 at 02:10 UTC | |
by LanX (Saint) on Aug 01, 2020 at 09:26 UTC |