Nicolas Steenlant > Catmandu-0.06 > Catmandu::Importer::Atom

Download:
Catmandu-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Catmandu-0.4001

NAME ^

Catmandu::Importer::Atom - Package that imports Atom feeds

SYNOPSIS ^

    use Catmandu::Importer::Atom;

    my $importer = Catmandu::Importer::Atom->new(url => "...");

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

METHODS ^

new(url => URL,[entries => [qw(...)])

Create a new Atom importer for the URL. Optionally provide a entries parameter with the feed items you want to import.

count

each(&callback)

...

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

SEE ALSO ^

Catmandu::Iterable

syntax highlighting: