Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Showing the right POD via Pod::Usage

by Anonymous Monk
on Jan 25, 2013 at 03:14 UTC ( #1015256=note: print w/replies, xml ) Need Help??


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

Pack the script pod in __DATA__ and use  -input => \*DATA

"-input" A reference to a filehandle, or the pathname of a file from wh +ich the invoking script's pod documentation should be read. It def +aults

Or save the pod in a var

my $script_pod = q{ ... }; open my($script_pod_fh), '<', \$script_pod; pod2usage( ... -input => $script_pod_fh );

Replies are listed 'Best First'.
Re^2: Showing the right POD via Pod::Usage
by skx (Parson) on Jan 25, 2013 at 09:44 UTC

    Perfect. Using the __DATA__ section didn't occur to me, and solves the problem.

    Thanks a lot!

    Steve
    --

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015256]
help
Chatterbox?
[james28909]: it is this node node_id=1190960
[james28909]: excuse me id=1190960
[james28909]: what am i doing worng...
[james28909]: i do not have fun with this chat box :(

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2017-05-24 01:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?