Pod-Elemental-PerlMunger

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

Revision history for Pod-Elemental-PerlMunger

0.200007  2022-12-31 16:42:09-05:00 America/New_York
        - update packaging and metadata
        - minimum required Perl is now v5.12

0.200006  2016-04-24 19:22:40+01:00 Europe/London
        - strip leading BOM (well, U+FEFF) from input
        - pass text, not bytes, to PPI

0.200005  2016-04-24 16:17:30+01:00 Europe/London
        - avoid double-decoding; new pod is already text

0.200004  2016-04-24 10:50:23+01:00 Europe/London
        - decode the fully new document, not just the Perl part
          (thanks, van-de-bugger and perlancar)

0.200003  2015-07-17 18:29:02-04:00 America/New_York

lib/Pod/Elemental/PerlMunger.pm  view on Meta::CPAN

#pod C<$perl_string> should be a character string containing Perl source code.
#pod
#pod C<%arg> may contain any input for the underlying procedure.  Defined keys for
#pod C<%arg> are:
#pod
#pod =for :list
#pod = filename
#pod the name of the file whose contents are being munged; optional, used for error
#pod messages
#pod = no_strip_bom
#pod If given, the BOM character (U+FEFF) won't be stripped from the input.
#pod Probably best to leave this one off.
#pod
#pod The method will return a character string containing the rewritten and combined
#pod document.
#pod
#pod Classes including this role must implement a C<munge_perl_string> that expects
#pod to be called like this:
#pod
#pod   $object->munge_perl_string(\%doc, \%arg);
#pod

lib/Pod/Elemental/PerlMunger.pm  view on Meta::CPAN


=over 4

=item filename

the name of the file whose contents are being munged; optional, used for error
messages

=item no_strip_bom

If given, the BOM character (U+FEFF) won't be stripped from the input.
Probably best to leave this one off.

=back

The method will return a character string containing the rewritten and combined
document.

Classes including this role must implement a C<munge_perl_string> that expects
to be called like this:



( run in 0.928 second using v1.01-cache-2.11-cpan-131fc08a04b )