[perl #57094] [BUG] infix:= converts a PGE::Match to a Str, not a Match

2008-12-05 Thread [EMAIL PROTECTED] via RT
Hi, After checking with the latest Rakudo, I think this issue is now resolved. We get: my $x = food; my $y = $x.match(/$x=[f](o+)/); say $y.WHAT; # Match say $y; # foo say $yx; # f say $y[0]; # oo However, this still failed: say $y ~~ Match; # gave 0 So I fixed that in 33504, and I think this

Re: [perl #61026] xx puts the same object in all spots, even value types

2008-12-05 Thread Patrick R. Michaud
On Wed, Dec 03, 2008 at 12:59:36PM -0800, Carl Mäsak wrote: masak perl6: my @a = 0 xx 4; @a[0] = 42; say @a.perl p6eval rakudo 33460: OUTPUT[[42, 42, 42, 42]␤] p6eval ..pugs: OUTPUT[\(42, 0, 0, 0)␤] p6eval ..elf 24144: OUTPUT[[42,0,0,0]␤] moritz_ jnthn: right jnthn masak: Oooh, that's a good

[perl #58276] [BUG] Can't iterate over list that was passed as a subroutine argument

2008-12-05 Thread [EMAIL PROTECTED] via RT
On Fri Aug 22 15:13:14 2008, [EMAIL PROTECTED] wrote: Rakudo r30452: sub a(@b) { for @b { .say } }; my @x = (1, 2, 3); a(@x) 1 2 3 That should be 1 2 3 This now works (probably has for a while, I just spotted the ticket and thought ah, didn't we fix that one?), but do we have a test

[perl #60092] $/ cannot be assigned to other vars or passed as a parameter

2008-12-05 Thread [EMAIL PROTECTED] via RT
On Fri Oct 24 10:30:00 2008, [EMAIL PROTECTED] wrote: Chris Dolan writes the following to p6u: I'm learning about Match objects today. I can't assign $/ to a variable or pass it to a method. This sounds a lot like [perl #57094] [BUG] infix:= converts a PGE::Match to a Str, not a