O'Reilly logo

XML and Perl by Ilya Sterin, Mark Riehl

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

XML::SAXDriver::CSV Perl Module

CSV format used to be the format of choice for small information interchange tasks between two applications. Just insert the data with each field separated by a comma and send. Here is a small sample of a CSV file that contains accounts receivable information:

Account Num,Name,Address,Balance 
1,Mark Riehl,1600 Main Street,$39.95 
2,Ilya Sterin,1299 Pine Street,$29.95 

Note that each CSV record is on a separate line delimited by a newline. Usually (but not always), CSV files have a column title that appears on the first line of the file.

The receiving application just splits this data based on its delimiter, a comma, and proceeds to process this information. Several potential problems associated with using ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required