I want to split a csv file. ex a row contain name,id,address,pin etc..... if the adress contains again commas then how to parse? ex: Abc,123,"xyz,asd,pqr",123456 "xyz,asd,pqr" is one element and kept in double quotes only
Asked
Active
Viewed 30 times
1 Answers
0
Use a CSV parser. If you don't want to install new modules for some reason then look at Text::ParseWords instead.

Dave Cross
- 68,119
- 3
- 51
- 97