mhearse has asked for the wisdom of the Perl Monks concerning the following question:

I'd like to print out formatted POD when -h is passed to a program. Right now, I am using a system call:
use strict; use Getopt::Std; my %opts; getopts('h', \%opts); system "perldoc $ARGV[0]" if $opts{h};
Is there a module I could use to do this? Or a better way?

Replies are listed 'Best First'.
Re: Formatted POD when -h is passed to program
by Corion (Patriarch) on Mar 09, 2008 at 17:28 UTC
      Thanks! That answers it all.