You can download the module from here
Pod::Remove - Remove POD from code
use Pod::Remove qw(remove_pod);
# $code is a string containing Perl-code with POD my $podless=remove_pod($code);
# or, without importing: use Pod::Remove;
my $podless=Pod::Remove::remove_pod($code);
Pod::Remove removes POD from Perl Code. It accomplishes this by scanning each line of input and removing everything between /^=/ and /^=cut/. Everything after __END__ and __DATA__ is also removed.
Rather simple, but effective.
There is another module doing something similar, Pod::Stripper. Pod::Stripper is based on Pod::Parser, which works mainly on input- and output-streams, i.e. files or filehandles. Which makes it really hard to capture the result in a string. Which is the reason I wrote Pod::Remove.
I might implement some functions to make handling of various types of input easier. But not now.
-- #!/usr/bin/perl for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: RFC: Pod::Remove
by IlyaM (Parson) on Mar 13, 2003 at 11:34 UTC | |
by domm (Chaplain) on Mar 13, 2003 at 12:06 UTC | |
Re: RFC: Pod::Remove
by Abigail-II (Bishop) on Mar 13, 2003 at 22:42 UTC | |
by domm (Chaplain) on Mar 14, 2003 at 10:12 UTC | |
Re: RFC: Pod::Remove
by dakkar (Hermit) on Mar 13, 2003 at 13:46 UTC | |
by domm (Chaplain) on Mar 13, 2003 at 13:56 UTC | |
by dakkar (Hermit) on Mar 13, 2003 at 14:12 UTC | |
by domm (Chaplain) on Mar 13, 2003 at 14:47 UTC | |
Re: RFC: Pod::Remove
by perlino (Initiate) on Jul 21, 2015 at 13:42 UTC |