in reply to Displaying in-line POD as man-pages 'on-the-fly'

See Getopt::Long. From its pod:

Getopt::Long encourages the use of Pod::Usage to produce help messages +. For example: use Getopt::Long; use Pod::Usage; my $man = 0; my $help = 0; GetOptions('help|?' => \$help, man => \$man) or pod2usage(2); pod2usage(1) if $help; pod2usage(-exitstatus => 0, -verbose => 2) if $man; __END__ =head1 NAME sample - Using Getopt::Long and Pod::Usage =head1 SYNOPSIS ...

Replies are listed 'Best First'.
Re^2: Displaying in-line POD as man-pages 'on-the-fly'
by rapide (Beadle) on Sep 07, 2008 at 20:33 UTC
    Great answer! Very easy to use! :-)

    pod2usage(-exitstatus => 0, -verbose => 2, -input => 'docu.pod');