Pod::Simple::JustPod(3p) Perl Programmers Reference Guide
Pod::Simple::JustPod(3p) Perl Programmers Reference Guide # Pod::Simple::JustPod(3p) Perl Programmers Reference Guide NNAAMMEE # Pod::Simple::JustPod -- just the Pod, the whole Pod, and nothing but the Pod SSYYNNOOPPSSIISS # my $infile = "mixed_code_and_pod.pm"; my $outfile = "just_the_pod.pod"; open my $fh, ">$outfile" or die "Can't write to $outfile: $!"; my $parser = Pod::Simple::JustPod->new(); $parser->output_fh($fh); $parser->parse_file($infile); close $fh or die "Can't close $outfile: $!"; DDEESSCCRRIIPPTTIIOONN # This class returns a copy of its input, translated into Perl's internal encoding (UTF-8), and with all the non-Pod lines removed. ...