http://qs321.pair.com?node_id=640441


in reply to regex to split on ' ', but skip spaces inside quotes

use quotewords from Text::ParseWords
use Text::ParseWords qw(quotewords); my $line = q(hi my name is 'john doe'); @words =quotewords(' ', 0, $line); print join "\n", @words,"\n";
--Artist