גאבור סבו - Gábor Szabó > Pipe-Tube-Csv > Pipe::Tube::Csv

Download:
Pipe-Tube-Csv-0.04.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.04   Source  

NAME ^

Pipe::Tube::Csv - Csv processor tube in Pipe

SYNPOSIS ^

  my @resp = Pipe->for(@rows)->csv->run;

  my @resp = Pipe->cat("t/data/file1", "t/data/file2")
            ->csv({ sep_char => "\t" })
            ->run;

DESCRIPTION ^

The ->csv() call can get a HASH reference parameter, the same parameter as Text::CSV would get. We pass it directly to that module.

Split up lines of csv file and return an array reference for each line.

TODO: use the first row as key names and on every other row return a hash of the values using the above header

AUTHOR ^

Gabor Szabo <gabor@szabgab.com>

COPYRIGHT ^

Copyright 2006-2012 by Gabor Szabo <gabor@szabgab.com>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html

See Also ^

Pipe and Text::CSV

syntax highlighting: