in reply to Re^2: Interpolate Perl variables in POD
in thread Interpolate Perl variables in POD

You could post process the output from pod2usage() to do the substitutions. It would be smart to use a form of markup that is unlikely to be changed by the pod2usage() processing.

Alternatively, you could preprocess the input to pod2usage() with the same caveat.


Perl reduces RSI - it saves typing
  • Comment on Re^3: Interpolate Perl variables in POD

Replies are listed 'Best First'.
Re^4: Interpolate Perl variables in POD
by repellent (Priest) on Oct 01, 2008 at 01:15 UTC
    Ahhh. How would I post-process pod2usage() output before, say, it gets put out as a man page?

      I'd use Perl. Some variation on:

      use strict; use warnings; while (<>) { s/this/that/g; print; }

      Perl reduces RSI - it saves typing