in reply to Convert a string to an array?

TextParseWords, which comes with perl. Specifically shellwords.