in reply to Re: Re: Parsing, tokens and strings
in thread Parsing, tokens and strings

Hmm. Not as impressive when you realize I left the quote marks on. {grin} A simple fix:
my @words = grep defined, /"([^"]*)"|'([^']*)'|(\S+)/g;

-- Randal L. Schwartz, Perl hacker