HaloO, Larry Wall wrote:
Mostly that means that rw will cause autovivification and ref won't.
As noted in the 'assignable mutators (S06/Lvalue subroutines)' thread I assume that scalar containers as such cannot be autovivified, right? But not yet existing entries in an array or hash can be vivified. sub foo ($x is rw) { $x = 42 } my @array[0, 5, 10] = 0, 5, 10; foo(3); # error foo(a[1]); # auto-vivifies How are cases handled when a scalar variable contains an object that supports assignment? Is that superseding the generic container assignment? Or is the write-out of rw params not dispatched through infix:<=>? Regards, TSa. -- "The unavoidable price of reliability is simplicity" -- C.A.R. Hoare "Simplicity does not precede complexity, but follows it." -- A.J. Perlis 1 + 2 + 3 + 4 + ... = -1/12 -- Srinivasa Ramanujan