not really, and not CSV (comma separated)
That's what you want?
DB<107> $str =~ s/^""//; # remove start => 1 DB<108> $str =~ s/""$//; # remove end => 1 DB<109> @result = split /" "/, $str # separate quotepairs => ( 6357445, 1349947, 0, 1, 3, 2, 1, 1, 1, 1, -2, 1394531830, 1394531830, 1415599200, 0, 0, 0, 0, 196, 29240, 378, 1394531846, 0, 0, 0, 8201, 0, 64, 0, 2, 89799, 8201, 89805, -1, -1, "Local Cell id=2, Cell Name=21842C11", 0, 1394531057, 1394531057, 1415599200, 1394531092, "", 0, "RAT_INFO=GL, AFFECTED_RAT=L", "", "", "10.35.201.146", "195;", 0, 5705354, 0, "", "", 0, 0, "Cell", )
Cheers Rolf
( addicted to the Perl Programming Language)
the OP was updated with code-tags, such that now the fields are separated by many whitespaces. to make my code work use split /"\s+"/ now.
In reply to Re: extract string columns with perl
by LanX
in thread extract string columns with perl
by juanito23
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |