This software removes all pod and provides output for the remaining items.
$>perl Stripper.pm
or
#!/usr/bin/perl -w
use strict;
use Pod::Stripper;
To begin, simply create a new object using the command:
my $Stripper = new Pod::Stripper();
From there, you can begin parsing your input files. If no arguments are given, the module will automatically parse from the standard input. Otherwise, you can specify a file(s) to parse using the following command:
for my $ARGV (@ARGV) {
$Stripper->parse_from_file($ARGV);
}
Pod::Stripper is essentially a subclass of Pod::Parser. It will parse Perl files and remove any Pod content, leaving only code. You have the freedom to specify where the output should be sent, similar to how Pod::Parser operates.
In conclusion, you may be able to subclass Pod::Stripper, but it's not entirely necessary given its already useful functionality. If you're in need of a reliable and efficient way to strip Pod content from Perl files, Pod::Stripper may be the module you're looking for.
Version 0.22: N/A