|
|
| No such thing as a small change | |
| PerlMonks |
Re: How can I split a string into chunks of 4 charactersby davido (Cardinal) |
| on Dec 06, 2013 at 16:54 UTC ( [id://1066012]=note: print w/replies, xml ) | Need Help?? |
|
If the string is really long, use a $position variable and a while loop so that internally the big 0 .. length( $string ) - 4 list doesn't need to be built and stored:
Dave
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||