Don't ask to ask, just ask | |
PerlMonks |
Re: splitting a string into arbitrary lengthsby kirbyk (Friar) |
on Jun 22, 2005 at 21:34 UTC ( [id://469204]=note: print w/replies, xml ) | Need Help?? |
You could do it with a regex as well:
This would be a good route if you had a less standard format, like optional dashes. -- Kirby, WhitePages.com
In Section
Seekers of Perl Wisdom
|
|