Catmandu::Exporter::PNX - a Primo normalized XML (PNX) exporter
# From the commandline $ catmandu convert JSON --fix myfixes to PNX < /tmp/data.json # From Perl use Catmandu; # Print to STDOUT my $exporter = Catmandu->exporter('PNX'); $exporter->add_many($arrayref); $exporter->add_many($iterator); $exporter->add_many(sub { }); $exporter->add($hashref); printf "exported %d objects\n" , $exporter->count; # Get an array ref of all records exported my $data = $exporter->as_arrayref;
This is a Catmandu::Exporter for converting Perl into Primo normalized XML (PNX).
Catmandu::Exporter, Catmandu-PNX
To install Catmandu::PNX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::PNX
CPAN shell
perl -MCPAN -e shell install Catmandu::PNX
For more information on module installation, please visit the detailed CPAN module installation guide.