rapide has asked for the wisdom of the Perl Monks concerning the following question:
I have a longer text in my script that is in POD-format. When user types '--manual' I want to display this manual to the user with 'less'. Is this possible without storing it to files first?
if($ARGV[0] eq '--manual') { < PRINT MAN PAGE FROM FUNCTION BELOW > } sub Documentation () { return " =pod =head1 B<NAME> perlmonc - This is my program =cut " }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Displaying in-line POD as man-pages 'on-the-fly'
by FunkyMonk (Bishop) on Sep 07, 2008 at 19:02 UTC | |
|
Re: Displaying in-line POD as man-pages 'on-the-fly'
by shmem (Chancellor) on Sep 07, 2008 at 19:06 UTC | |
by rapide (Beadle) on Sep 07, 2008 at 20:33 UTC | |
|
Re: Displaying in-line POD as man-pages 'on-the-fly'
by jwkrahn (Abbot) on Sep 07, 2008 at 20:05 UTC | |
by MidLifeXis (Monsignor) on Sep 08, 2008 at 11:16 UTC |