Gabor Szabo (via RT) wrote:
> # New Ticket Created by  Gabor Szabo 
> # Please include the string:  [perl #63970]
> # in the subject line of all future correspondence about this issue. 
> # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=63970 >
> 
> 
> perl6 -e'say "a;b".split(";").perl'
> ["a", "b"]
> 
> but
> 
> perl6 -e'say split("a;b", ";")'
> ;

In the sub form the delimiter still goes first (like in Perl 5), so it
tries to split ';' by 'a;b', fails, and thus returns the whole string is
one chunk. Works as designed.

Cheers,
Moritz

Reply via email to