G
Graham Drabble
Hi,
I currently have a script running under linux that uses
$str = `links -dump -width 72 $url`;
However I want to write this entirely in Perl so that it is easy to
port between systems, including systems that don't have links.
(For those that don't understand the call to links, it outputs a text
only representation of the HTML document formatted to keep within 72
characters.)
I've tried just reading in the raw HTML and tag stripping but that
fails because the underlying HTML may not be formatted nicely. I need
something that will properly parse the HTML to generate the text
layout.
I'm sure that this must have been done several times before but can't
find anything on CPAN. Any ideas?
I currently have a script running under linux that uses
$str = `links -dump -width 72 $url`;
However I want to write this entirely in Perl so that it is easy to
port between systems, including systems that don't have links.
(For those that don't understand the call to links, it outputs a text
only representation of the HTML document formatted to keep within 72
characters.)
I've tried just reading in the raw HTML and tag stripping but that
fails because the underlying HTML may not be formatted nicely. I need
something that will properly parse the HTML to generate the text
layout.
I'm sure that this must have been done several times before but can't
find anything on CPAN. Any ideas?