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
|
---|
In Section
Seekers of Perl Wisdom