Perl equivelent of "links -dump"

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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

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

I'm sure that this must have been done several times before but can't
find anything on CPAN. Any ideas?

Graham Drabble /

Re: Perl equivelent of "links -dump"

Graham Drabble wrote:
Quoted text here. Click to load it


Dipl.-Inform. Frank Seitz
Anwendungen für Ihr Internet und Intranet
Tel: 04103/180301; Fax: -02; Industriestr. 31, 22880 Wedel

Homepage: /

Re: Perl equivelent of "links -dump"

Quoted text here. Click to load it

That's the one. Many thanks.

Graham Drabble /

Site Timeline