If the strings don't contain commas then you could:
my $string = q("one","two","three"); my @array = map {s/^['"](.*)['"]$/$1/ ? $1 : $_} split ',', $string; print "@array";
Prints:
one two three
In reply to Re: Interpolating a string into list context.
by GrandFather
in thread Interpolating a string into list context.
by hangon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |