"push @a, $1 while s/(.{1,4})//;" produces the following: "0123 4abc", which is not the desired result.
Dave
In reply to Re^2: How can I split a string into chunks of 4 characters
by davido
in thread How can I split a string into chunks of 4 characters
by PetreAdi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |