in reply to Re^2: How to slice complicated string into an array
in thread How to slice complicated string into an array

As a core module Text::ParseWords is convenient for simple cases.

# perl use strict; use Text::ParseWords; use Data::Dumper; my $str = '"word1",word2,"word3,word4"'; my @words = quotewords(',', 0, $str); print Dumper \@words;
poj