in reply to Easy help for scripts

Enter Pod::Usage (will be a core module in Perl 5.8):
use Pod::Usage; pos2usage() if $opt_h;

Replies are listed 'Best First'.
Re (tilly) 2: Easy help for scripts
by tilly (Archbishop) on Sep 10, 2001 at 06:43 UTC
    Nice, but I would tend to use that for an invalid invocation, and use the full documentation for a help screen. YMMV.

    UPDATE
    chromatic pointed out to me that you can get the full documentation out of Pod::Usage. But not as easily, and without the convenient pager behaviour...