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 ...
In reply to Re: Displaying in-line POD as man-pages 'on-the-fly'
by shmem
in thread Displaying in-line POD as man-pages 'on-the-fly'
by rapide
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |