Re: assignable mutators (S06/Lvalue subroutines)

2008-05-28 Thread TSa
HaloO, Dave Whipp wrote: The sequence I was thing of is: my $obj = Length.new; $obj.mm = 42; say $obj.inch; # your "Length.inch" method yields $obj.mm = 63; say $obj.inch; # Length.inch to resumes, overwriting $obj.mm back to 42 It seems to me that the assignment within your "inch" method will

Re: parameters: ref vs rw

2008-05-28 Thread TSa
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 viv