# split $string on a space @ary = split(/ /, $string); # split $string on one or more space @ary = split(/[ ]+/, $string);
There are also many other useful operators for a situation like this. If you haven't already, I recommend you read perlre.
HTH!
Alakaboo
In reply to Re: Splitting Array with Variable Spaces
by mwp
in thread Splitting Array with Variable Spaces
by ImpalaSS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |