Perl:Split a String
You can use split to break a single string into an array of strings.
You can specify the string that delimits. split(' ',$s) will split the string $s on every run of space characters.
split on regular expression
You can use a regular expression. /\s+/ will match one or more consecutive white space characters - including tabs and line end markers.