Multisplit: Difference between revisions

m
→‎{{header|Raku}}: .perl -> .raku
(Added Wren)
m (→‎{{header|Raku}}: .perl -> .raku)
Line 1,654:
=={{header|Raku}}==
(formerly Perl 6)
{{Worksworks with|rakudoRakudo|2015-11-292020.08.1}}
<lang perl6>sub multisplit($str, @seps) { $str.split(/ ||@seps /, :v) }
 
Line 1,660:
 
# Print the strings.
say @chunks».Str.perlraku;
 
# Print the positions of the separators.
2,392

edits