in reply to How to split a string based on the length of a sequence of characters within the string
The first argument to split should define what separates the items you want to extract. Wrong tool. You want a vanilla regex match.
my @chunks = $input =~ /(.{1,10})/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to split a string based on character(s) length
by thanos1983 (Parson) on Aug 13, 2014 at 20:19 UTC | |
by ikegami (Patriarch) on Aug 15, 2014 at 03:55 UTC |