Re: 99problems-31-to-40 failure

2009-10-01 Thread Daniel Ruoso
Em Qui, 2009-10-01 às 12:22 -0400, Kevin Phair escreveu: > This test fails for me with the latest Rakudo. It looks like this is > because when a variable is pushed onto an array, and then > auto-incremented, it is also auto-incremented inside the array. > my @stuff; > my $w = 1; > @stuff.push($w

99problems-31-to-40 failure

2009-10-01 Thread Kevin Phair
# P35 (**) Determine the prime factors of a given positive integer. This test fails for me with the latest Rakudo. It looks like this is because when a variable is pushed onto an array, and then auto-incremented, it is also auto-incremented inside the array. my @stuff; my $w = 1; @stuff.push