in reply to How can I split a string into chunks of 4 characters
$_ = '01234567890'; push @a, $1 while s/(.{1,4})//;
$_ = '01234abc'; $_ = $2.$', push @a, $& while /(.)(.{3})/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I split a string into chunks of 4 characters
by davido (Cardinal) on Dec 06, 2013 at 20:27 UTC | |
by Lennotoecom (Pilgrim) on Dec 06, 2013 at 21:36 UTC | |
by AnomalousMonk (Archbishop) on Dec 06, 2013 at 22:15 UTC |