# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #59064] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=59064 >
On Sat, Sep 20, 2008 at 12:33:27AM +1100, Илья wrote: > >For example: > > split /''/, $string > >splits between characters. > > this do not work properly in Rakudo: > say (split /''/, "foo").perl; # ["foo"] Currently the split function (note function, not method) is in src/classes/Str.pir, and it appears to be coercing its arguments into strings. This function needs to be moved to src/builtins/any-str.pir, and updated to accept pmc arguments. Perhaps something like: .namespace [''] .sub 'split' :multi(_, _) .param pmc sep .param pmc target .return target.'split'(sep) .end Pm