Pod-Stupid
view release on metacpan or search on metacpan
NAME
Pod::Stupid - The simplest, stupidest 'pod parser' possible
VERSION
version 0.005
SYNOPSIS
use Pod::Stupid;
my $file = shift; # '/some/file/with/pod.pl';
my $original_text = do { local( @ARGV, $/ ) = $file; <> }; # slurp
my $ps = Pod::Stupid->new();
# in scalar context returns an array of hashes.
my $pieces = $ps->parse_string( $original_text );
# get your text sans all POD
my $stripped_text = $ps->strip_string( $original_text );
# reconstruct the original text from the pieces...
lib/Pod/Stupid.pm view on Meta::CPAN
=head1 VERSION
version 0.005
=head1 SYNOPSIS
use Pod::Stupid;
my $file = shift; # '/some/file/with/pod.pl';
my $original_text = do { local( @ARGV, $/ ) = $file; <> }; # slurp
my $ps = Pod::Stupid->new();
# in scalar context returns an array of hashes.
my $pieces = $ps->parse_string( $original_text );
# get your text sans all POD
my $stripped_text = $ps->strip_string( $original_text );
# reconstruct the original text from the pieces...
( run in 0.498 second using v1.01-cache-2.11-cpan-49f99fa48dc )