In the previous code, i got the desired output due to pipe limited. in the new format i have recieved as comma delimited, with in the field commas are already present with " " . so i am unable to get the desired output.
21W34|8720598361193|10001||"Amandelen, ongebrand"|320
previous code
my @elem = split /\|/;
expected output
21W34
8720598361193
10001
Amandelen, ongebrand
320
current data ( After 320 data, we used to get more like single field -> "data1, data2" or
single field -> data1 single field ->data2.
21W34,8720598361193,10001,,"Amandelen, ongebrand",320
current code
my @elem = split /\,/;
current output
21W34
8720598361193
10001
"Amandelen
ongebrand"
320
expected output
21W34
8720598361193
10001
Amandelen, ongebrand
320
Global examlple .
field1,field2,field3
foo, "bar, baz", baz