Datahub::Factory::Importer::YAML - Import data from YAML data dumps
use Datahub::Factory; use Data::Dumper qw(Dumper); my $yaml = Datahub::Factory->importer('YAML')->new( file_name => '/tmp/export.yaml', ); $yaml->importer->each(sub { my $item = shift; print Dumper($item); });
Datahub::Factory::Importer::YAML uses Catmandu to fetch a list of records from an YAML data dump. It returns an Importer.
file_name
Location of the YAML data dump.
importer
A Importer that can be used in your script.
Tine Robbe <tine dot robbe at vlaamsekunstcollectie.be >
Copyright 2017- Vlaamsekunscollectie vzw, PACKED vzw
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Datahub::Factory Catmandu
To install Datahub::Factory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Datahub::Factory
CPAN shell
perl -MCPAN -e shell install Datahub::Factory
For more information on module installation, please visit the detailed CPAN module installation guide.