Hi all,
I'm still fairly new to PERL, but I'm posed with a problem I'm hoping someone can assist with.
I've been asked to write a script that performs a search on a (rather large) CSV datasource, outputing the results in HTML.
An example row from the CSV file (generated by saving an MS Excel spreadsheet as CSV) is:
0011423,Bathurst,12,"Southern Bell, Northern Bell", Blue
This row has 5 fields, the fourth containing a ',' - in this format will the PERL CSV DBI/DBD modules be able to handle this as a 5 field row, or will the embedded comma confuse everything? If it is going to cause a problem, are there any suggestions on how to parse this file in PERL (without modifying the CSV file)?
Many thanks in advance....
I'm still fairly new to PERL, but I'm posed with a problem I'm hoping someone can assist with.
I've been asked to write a script that performs a search on a (rather large) CSV datasource, outputing the results in HTML.
An example row from the CSV file (generated by saving an MS Excel spreadsheet as CSV) is:
0011423,Bathurst,12,"Southern Bell, Northern Bell", Blue
This row has 5 fields, the fourth containing a ',' - in this format will the PERL CSV DBI/DBD modules be able to handle this as a 5 field row, or will the embedded comma confuse everything? If it is going to cause a problem, are there any suggestions on how to parse this file in PERL (without modifying the CSV file)?
Many thanks in advance....