Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Perl equivelent of "links -dump"
- Graham Drabble
October 18, 2009, 9:54 am
rate this thread
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?
- » FAQ 8.46 What's the difference between require and use?
- — Previous thread in » PERL Discussions