Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
If a file is being split and the line it is on has this:
and it contained this:
1945,"4,399.00",938,1/10/2012
and if I split it like this:
So how do I make it not split values that are between the "" lines?
Thanks,
Richard
print $_fileLine;
and it contained this:
1945,"4,399.00",938,1/10/2012
and if I split it like this:
Then it would split the dollar amount too...my @_fileparts = split(/\,/, $_fileLine);
So how do I make it not split values that are between the "" lines?
Thanks,
Richard
Back to
Seekers of Perl Wisdom