
PTools::SDF::CSV - Load "CSV" data file into an PTools::SDF::SDF object

This document describes version 0.01, released Feb 15, 2003

This class depends upon the PTools::SDF::SDF class.

use PTools::SDF::CSV
$csvObj = new PTools::SDF::CSV;
or $csvObj = new PTools::SDF::CSV( $fileName, $mode, undef, @fieldNames );

The PTools::SDF::CSV class reads and writes files in the "Comma Separated Values" format.
"earth",3,,"moon",1 "mars",4,,"", "jupiter",5,,"callisto",1 "jupiter",5,,"europa",2 "jupiter",5,,"ganymede",3
In addition, this class supports the Field Names header that provides a "Self Defining Format." This is implemented by storing names for the fields within each record at the top of the data file.
None. This class relies on constructor in the parent class.
After instantiation, objects of this class behave identically to PTools::SDF::SDF objects.

This class inherits from the PTools::SDF::SDF class.

See PTools::SDF::Overview, PTools::SDF::ARRAY, PTools::SDF::DB, PTools::SDF::DIR, PTools::SDF::DSET, PTools::SDF::File, PTools::SDF::IDX, PTools::SDF::SDF, PTools::SDF::INI, PTools::SDF::TAG, PTools::SDF::Lock::Advisory, PTools::SDF::Lock::Selective, PTools::SDF::Sort::Bubble, PTools::SDF::Sort::Quick and PTools::SDF::Sort::Shell.

Chris Cobb, <nospamplease@ccobb.net>
Spliting algorithm, with appreciation, from section titled "An Introductory Example: Parsing CSV Text" in Chapter 7, (pg. 204) of "Mastering Regular Expressions" by J. Friedl, published by O'Reilly & Associates, Inc., 2ed, Dec, 1998.

Copyright (c) 1997-2007 by Chris Cobb. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.