Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: introspection, or running pod2html on itself

by Anonymous Monk
on Oct 23, 2009 at 12:15 UTC ( [id://802885]=note: print w/replies, xml ) Need Help??


in reply to Re^3: introspection, or running pod2html on itself
in thread introspection, or running pod2html on itself

Try this, save as ppselfdoc.PL, and make sure not to invoke pp with -f PodStrip :)
#!/usr/bin/perl -- use strict; use warnings; use Pod::Html; use PAR; if (@ARGV){ print "$_\n" for PAR::read_file( q!script/ppselfdoc.PL!); } else { $ENV{PAR_0} ||= File::Spec->rel2abs(__FILE__); warn "RUNNING pod2html $ENV{PAR_0}\n"; my @html_options = ('--title=My Test'); pod2html $ENV{PAR_0}, @html_options; } exit; =head1 NAME NAME - ppselfdoc.PL =head1 SYNOPSIS print html ppselfdoc.PL print sourcecode ppselfdoc.PL 1 =cut

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-20 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found