Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Showing the right POD via Pod::Usage

by Athanasius (Abbot)
on Jan 25, 2013 at 02:36 UTC ( #1015252=note: print w/ replies, xml ) Need Help??


in reply to Showing the right POD via Pod::Usage

The following is a kludge, but may be worth a try:

Change the second:

=head1 SYNOPSIS
to (say):
=head1 MAIN

and then invoke pod2usage as:

Pod::Usage::pod2usage( pod2usage(-verbose => 99, -sections => [ qw(MAIN) ] ) ) if ( $CONFIG{ 'help' } );

See -sections in the “Arguments” section of Pod::Usage.

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,


Comment on Re: Showing the right POD via Pod::Usage
Select or Download Code
Re^2: Showing the right POD via Pod::Usage
by skx (Parson) on Jan 25, 2013 at 09:46 UTC

    Renaming the sections would be a simple solution that hadn't occurred to me, thanks.

    (I've gone the other way and used a __DATA__ block to hold it).

    Steve
    --

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015252]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2015-07-07 03:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls