On Tue, Nov 11, 2008 at 08:43:09AM -0800, Carl Mäsak wrote: > <masak> rakudo: for "foo\nbar\nbaz".split( /\n ** 2..*/ ) { say > .trans([ /\s+/ => " " ]) } > <p6eval> rakudo 32543: OUTPUT[too few arguments passed (2) - 3 params > expectedcurrent instr.: '_block25' pc -342568903 ((unknown > file):-1)] > <masak> HAH! > * masak files ticket
The problem is that the strings returned in PGE's Match objects are Parrot String PMCs, and so the .trans method for String PMCs (src/pmc/string.pmc:867) ends up being used instead of the .trans method defined by Rakudo. This will all likely be fixed when we have HLL mapping in place, and when PGE is updated to understand HLL mapping. Until then, I think we're a little stuck on this one. Pm