CPAN suggests Text::ParseWords (found via search.cpan.org, looking for shell parse words, which pointed me to Shell::Words) - it seems to do what you want, more or less.
In reply to Re: Parsing strings into @ARGV
by Corion
in thread Parsing strings into @ARGV
by mirod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |