NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Overwriting the array in place (Score:2)
This might even be optimized and actually shuffle the elements within the array.
Re: (Score:1)
@items.=pick(*);
gets:
Null PMC access in find_method()
if I do either (after:
my $i = @items.elems;
):
@items.=pick($i);
or:
@items = @items.pick($i);
I get:
Cannot assign to readonly variable
Doing:
return @items.pick($i);
works though ('*' again gets the Null PMC).
Re:Overwriting the array in place (Score:2)
That pick seems to work for me:
If you update parrot and can produce a small test case, I'd be curious to see it. Or I just might be misunderstanding you :)
Reply to This
Parent
Re: (Score:1)
Re: (Score:1)
return @items.pick(*);
works, at least on x86 Leopard box.