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

NAME

POE::Filter::CSV - A POE-based parser for CSV based files.

SYNOPSIS

    use POE::Filter::CSV;

    my $filter = POE::Filter::CSV->new();
    my $arrayref = $filter->get( [ $line ] );
    my $arrayref2 = $filter->put( $arrayref );

DESCRIPTION

POE::Filter::CSV provides a convenient way to parse CSV files. It is a wrapper for the module Text::CSV.

A more comprehensive demonstration of the use to which this module can be put to is in the examples/ directory of this distribution.

CONSTRUCTOR

new

Creates a new POE::Filter::CSV object. Any arguments given are passed through to the constructor for Text::CSV.

METHODS

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.

clone

Makes a copy of the filter, and clears the copy's buffer.

AUTHOR

Chris BinGOs Williams

LICENSE

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.

SEE ALSO

POE

Text::CSV

POE::Filter

POE::Filter::Line

POE::Filter::Stackable