Pod::Simple::Data -- retrieve the data inlined in Pod
perl -MPod::Simple::Data -e \ "exit Pod::Simple::Data->new('stuff', 'xstuff')->parse_file(shift)->any_errata_seen" \ thingy.pod
This class is that for retrieving data from =begin/=for/=end sections. The constructor accepts a list of identifier, the default is '*' which allows to retrieve all data.
=begin/=for/=end
'*'
This is a subclass of Pod::Simple and inherits all its methods.
perl -MPod::Simple::Data -e \ "exit Pod::Simple::Data->new()->parse_file(shift)->any_errata_seen" \ thingy.pod
use Pod::Simple::Data; my $p = Pod::Simple::Data->new(); $p->output_string(\my $data); $p->parse_file('path/to/Module/Name.pm'); open my $out, '>', 'out.dat' or die "Cannot open 'out.dat': $!\n"; print $out $data;
Pod::Simple, "About Data Paragraphs" in perlpodspec, Travis CI, Coveralls
Francois Perrad <francois.perrad@gadz.org>
Copyright 2014 Francois Perrad
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Pod::Simple::Data, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pod::Simple::Data
CPAN shell
perl -MCPAN -e shell install Pod::Simple::Data
For more information on module installation, please visit the detailed CPAN module installation guide.