I think the best way is to use regular expressions (strongest and useful characteristic in perl) or even sprintf.
I'll recomend you to take a look at PerlRE first
In reply to Re: string to array
by tritt
in thread string to array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |