Thank you all for your quick responses.
Splitting on the " was the key.
I'm intrigued by Jon Molin's response, though:
> my @ar = ($a =~ /((?:\"[^\"]*\"|[^\s]*))\s?/g); #should be possible to remove "
> s/\"//g foreach (@ar);
> print "$_\n" foreach (@ar);

This works, too, but I don't understand what the ?: is for;
my Perl book says it doesn't do backreferences; what does that mean?
Oh, fun with regexes. :)
        Pete


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to