<?xml version="1.0" encoding="windows-1252"?>
<node id="1015256" title="Re: Showing the right POD via Pod::Usage" created="2013-01-24 22:14:31" updated="2013-01-24 22:14:31">
<type id="11">
note</type>
<author id="961">
Anonymous Monk</author>
<data>
<field name="doctext">
&lt;p&gt; Pack the script pod in __DATA__ and use &lt;c&gt; -input =&gt; \*DATA &lt;/c&gt; &lt;c&gt;
    "-input"
        A reference to a filehandle, or the pathname of a file from which
        the invoking script's pod documentation should be read. It defaults
&lt;/c&gt;
&lt;p&gt; Or save the pod in a var &lt;c&gt;
my $script_pod = q{

...

};
open my($script_pod_fh), '&lt;', \$script_pod;
pod2usage( ... -input =&gt; $script_pod_fh );
&lt;/c&gt;</field>
<field name="root_node">
1015240</field>
<field name="parent_node">
1015240</field>
<field name="reputation">
8</field>
</data>
</node>
