File::Convert::CSV - Perl extension for converting CSV files
use File::Convert::CSV; my $converter = File::Convert::CSV->new( d_verbosity => 3, file => 'examples/taqman_export.csv', separator => ";" ); $converter->iterate_each_line( sub { my $this = shift; $this->d_warn( "DATA_HASH %s", dump( $this->data_hash ) ); $this->d_warn( "DATA_ARRAY %s", dump( $this->data_array ) ); $this->d_warn( "DATA_FIELDS %s", dump( $this->data_fields ) ); $this->d_warn( "RAW %s", $this->raw ); } ); $converter = File::Convert::CSV->new( d_verbosity => 3, separator => " " ); $converter->iterate_each_line_from_string( << END_HERE );
ALPHA BETA 1 6 2 6 3 6 END_HERE
A somewhat luxury but lighweight module for reading conveniently CSV files.
None by default.
DBD::AnyData, and type CSV into search.cpan.org to see visit the zoo of similar modules.
murat, <muenalan@cpan.org>
Copyright (C) 2007 by Murat Uenalan
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.
To install File::Convert::CSV, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::Convert::CSV
CPAN shell
perl -MCPAN -e shell install File::Convert::CSV
For more information on module installation, please visit the detailed CPAN module installation guide.