The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

File::Convert::CSV - Perl extension for converting CSV files

SYNOPSIS

  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

DESCRIPTION

A somewhat luxury but lighweight module for reading conveniently CSV files.

new() options

has_header If set to false, will not fill the data_hash and data_array fields.

EXPORT

None by default.

SEE ALSO

DBD::AnyData, and type CSV into search.cpan.org to see visit the zoo of similar modules.

AUTHOR

murat, <muenalan@cpan.org>

COPYRIGHT AND LICENSE

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.