Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: pod2html question

by jmcnamara (Monsignor)
on Jan 23, 2007 at 12:13 UTC ( #596075=note: print w/ replies, xml ) Need Help??


in reply to pod2html question


Here is a small filter program based on Pod::Simple::HTML and the search.cpan CSS that should give you more or less the same output that you see on that site:

#!/usr/bin/perl -w use strict; use Pod::Simple::HTML; my $parser = Pod::Simple::HTML->new(); if (defined $ARGV[0]) { open IN, $ARGV[0] or die "Couldn't open $ARGV[0]: $!\n"; } else { *IN = *STDIN; } if (defined $ARGV[1]) { open OUT, ">$ARGV[1]" or die "Couldn't open $ARGV[1]: $!\n"; } else { *OUT = *STDOUT; } $parser->index(1); $parser->html_css('http://search.cpan.org/s/style.css'); $parser->output_fh(*OUT); $parser->parse_file(*IN); __END__

Update: This utility is now available on CPAN as pod2cpanhtml which is install as part of App::Pod2CpanHtml.

--
John.


Comment on Re: pod2html question
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2014-08-30 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls