Pod::Parser
NAME
Pod::Parser - parsing files with POD in them (Perl 6 syntax)
WARNING
The generated data structure is not final yet
use Pod::Parser;
my $pp = Pod::Parser.new;
my @data = $pp.parse_file('path/to/file.pod');
or
my $pod = 'path/to/file.pod'.IO.slurp;
my @data = $pp.parse($pod);
Example
use Pod::Parser;
my $pp = Pod::Parser.new;
my @data = $pp.parse_file('path/to/file.pod');
CATCH {
when X::Pod::Parser {
warn $_;
return;
}
}
' or '=MMMMMM' or '=begin usage' ?