On Mon Nov 17 13:49:03 2008, masak wrote: > Rakudo r32733: > > <masak> rakudo: my @a; @a[0].=subst( '', '') > <polyglotbot> OUTPUT[PAST::Compiler can't compile a null nodecurrent > instr.: > [...] Ah, yes, .= was only handling a scalar on the LHS. Thanks to PAST enhancements since I first implemented .=, it was nice and easy to refactor it into something that'd do the right thing...
> my @a = 'abc'; @a[0] .= subst('b','d'); say @a[0] adc > my %h = x => 'abc'; %h<x> .= subst('b','d'); say %h<x> adc Committed in r33225, plus added tests into assign.t. Thanks, Jonathan