View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
Nicolas Steenlant > Catmandu-XLS-0.04 > Catmandu::Importer::XLSX

Download:
Catmandu-XLS-0.04.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: Catmandu-XLS-0.08

NAME ^

Catmandu::Importer::XLSX - Package that imports XLSX files

SYNOPSIS ^

    use Catmandu::Importer::XLSX;

    my $importer = Catmandu::Importer::XLSX->new(file => "./t/test.xlsx");

    my $n = $importer->each(sub {
        my $hashref = $_[0];
        # ...
    });

METHODS ^

new(file => $filename [, fields => \@fields"])

Create a new XLSX importer for $filename. Use STDIN when no filename is given. The object fields are read from the XLS header line or given via the 'fields' parameter.

Only the first worksheet from the Excel workbook is imported.

count

each(&callback)

...

Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited. The Catmandu::Importer::XLS methods are not idempotent: XLS streams can only be read once.

SEE ALSO ^

Catmandu::Iterable

syntax highlighting: