<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - perlapp executable doesn&amp;#039;t produce pod2usage output - Comments</title>
 <link>http://community.activestate.com/forum-topic/perlapp-executable-doesnt-produce-pod2usage-output</link>
 <description>Comments for &quot;perlapp executable doesn&#039;t produce pod2usage output&quot;</description>
 <language>en</language>
<item>
 <title>Re: perlapp executable doesn&#039;t produce pod2usage output</title>
 <link>http://community.activestate.com/forum-topic/perlapp-executable-doesnt-produce-pod2usage-output#comment-4331</link>
 <description>&lt;p&gt;This is because the comments inside =pod and =cut are stripped out during the compile.&lt;/p&gt;
&lt;p&gt;Instead, use this technique, which works for me:&lt;/p&gt;
&lt;p&gt;1) Put the documentation in the __DATA__ section, like:&lt;/p&gt;
&lt;pre&gt;
[...your script...]
__DATA__

=pod

=head1 NAME 
[...more POD...]
&lt;/pre&gt;&lt;p&gt;
2) Then use the -input option to pod2usage, like this:&lt;/p&gt;
&lt;pre&gt;
  pod2usage(-input =&amp;gt; \*DATA)
&lt;/pre&gt;&lt;p&gt;
(I realize this reply is very late, but I was looking for an answer myself and thought it might be useful to others.)&lt;/p&gt;
</description>
 <pubDate>Tue, 26 Feb 2008 12:47:25 -0800</pubDate>
 <dc:creator>alphapenguin</dc:creator>
 <guid isPermaLink="false">comment 4331 at http://community.activestate.com</guid>
</item>
<item>
 <title>perlapp executable doesn&#039;t produce pod2usage output</title>
 <link>http://community.activestate.com/forum-topic/perlapp-executable-doesnt-produce-pod2usage-output</link>
 <description>&lt;p&gt;I have a Perl script that works fine with ActiveState Perl and with CPAN Perl on both Windows and Linux, but am now trying to generate a Windows executable using PerlApp in the PDK (trial license).  When I run the script I am able to view the usage information produced by pod2usage(), but running the executable merely prints:&lt;/p&gt;
&lt;p&gt;No documentation found for &quot;scriptname.exe&quot;.&lt;/p&gt;
&lt;p&gt;Pod::Usage is identified as a script dependency by PerlApp and I&#039;m not modifying any of the defaults in PerlApp.  Can anyone tell me if this this is a limitation of the trial version or maybe a bug?&lt;/p&gt;
&lt;p&gt;Thank you,&lt;br /&gt;
Tony&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/perlapp-executable-doesnt-produce-pod2usage-output#comments</comments>
 <category domain="http://community.activestate.com/forums/pdk-support-0">PDK Support</category>
 <category domain="http://community.activestate.com/os/windows-2000-pro-server">Windows 2000 Pro / Server</category>
 <pubDate>Thu, 20 Sep 2007 11:36:52 -0700</pubDate>
 <dc:creator>Tony Mancill</dc:creator>
 <guid isPermaLink="false">1442 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
