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;
In reply to Re: How to split a string based on character(s) length
by ikegami
in thread How to split a string based on the length of a sequence of characters within the string
by thanos1983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |