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

Yes, that is csv and I should have mentioned it. That module is not part of distribution (at least to the perl I have) which would limit the script usability in our environment. But thank you for the pointer.
  • Comment on Re^2: How to slice complicated string into an array

Replies are listed 'Best First'.
Re^3: How to slice complicated string into an array
by poj (Abbot) on Feb 26, 2016 at 13:03 UTC

    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
Re^3: How to slice complicated string into an array
by Arunbear (Prior) on Feb 26, 2016 at 12:38 UTC