in reply to Splitting Array with Variable Spaces
# 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
|
|---|