Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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(''); $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.


Comment on Re: pod2html question
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2015-11-27 21:44 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (734 votes), past polls