Bryan R Harris wrote:
I'm interested in doing a whitespace split on a string, but that takes
quotes (single and double) into account, e.g. I'd like
dog cat 'tortoise and the hare' cow
to split into:
('dog', 'cat', 'tortoise and the hare', 'cow')
Is there a good way to do this?
That's a FAQ.
perldoc -q delimited
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>