$_ = '01234567890'; push @a, $1 while s/(.{1,4})//;
$_ = '01234abc'; $_ = $2.$', push @a, $& while /(.)(.{3})/;
In reply to Re: How can I split a string into chunks of 4 characters
by Lennotoecom
in thread How can I split a string into chunks of 4 characters
by PetreAdi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |