in reply to Re^3: tie'ing a scalar as an array?
in thread tie'ing a scalar as an array?
Thanks, that's cool!
Do I understand correctly that the lowercase methods can either be invoked on the scalar or the array (as both are blessed into the package), and therefore you sometimes have to retrieve the tied scalar from the array (if that happens to be the invocant)?
So, if you use, say, a $a-> construct, the STORE method is called on the array reference. STORE then invokes $a->lalala0 on the array, so the lalalao sub needs to retrieve the tied scalar from the invocant array.
Is that sort of how it works?