POE::Filter::CSV_XS - A POE-based parser for CSV based files.
use POE::Filter::CSV_XS; my $filter = POE::Filter::CSV_XS->new(); my $arrayref = $filter->get( [ $line ] ); my $arrayref2 = $filter->put( $arrayref );
POE::Filter::CSV_XS provides a convenient way to parse CSV files. It is a wrapper for the module Text::CSV_XS.
A more comprehensive demonstration of the use to which this module can be put to is in the examples/ directory of this distribution.
new
Creates a new POE::Filter::CSV_XS object. Any given arguments are passed to the constructor for Text::CSV_XS, consult the documentation for that module.
get
get_one_start
get_one
Takes an arrayref which is contains lines of CSV formatted input. Returns an arrayref of lists of fields.
put
Takes an arrayref containing arrays of fields and returns an arrayref containing CSV formatted lines.
Chris BinGOs Williams
BinGOs
Copyright © Chris Williams
This module may be used, modified, and distributed under the same terms as Perl itself. Please see the license that came with your Perl distribution for details.
POE
Text::CSV_XS
POE::Filter
POE::Filter::Line
POE::Filter::Stackable
To install POE::Filter::CSV_XS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Filter::CSV_XS
CPAN shell
perl -MCPAN -e shell install POE::Filter::CSV_XS
For more information on module installation, please visit the detailed CPAN module installation guide.