NAME

pm_simple_filter.pl - Filter for Perl module

SYNOPSIS

pm_simple_filter.pl [[INFILE] OUTFILE]
pm_simple_filter.pl DIR

DESCRIPTION

To be autmatically called via PM_FILTER during the build process.

Input must be code of a Perl module. It reads the VERSION (must be present!) and in the POD section, it replaces #VERSION# with that version and #AUTHOR# with the name of the author (hard coded in this script). It does not replace in verbatim lines.

Alternatively, the script can also be called with a single directory name DIR. In this case, the script searches the DIR tree and replaces all *.pm files that it finds.

The script reads from INFILE and writes to OUTFILE. If only INFILE is specified, this file is changed. Without arguments, the script reads from STDIN and writed to STDOUT.

The script assumes that the POD is located at the bottom of the file, after an __END__ followed by optional empty lines followed by a =pod.