Problems? Is your data what you think it is? | |
PerlMonks |
Re: HTML::LinkExtractorby simon.proctor (Vicar) |
on Aug 20, 2002 at 14:35 UTC ( [id://191468]=note: print w/replies, xml ) | Need Help?? |
I recently had to do something incredibly similar to this but I made use of HTML::TreeBuilder. My code ran down into something alot shorter (I've re-written mine here so its more of a psuedo code than anything):
I pasted this, out of interest really, as we've used two different approaches to do roughly the same thing. I was hoping some sort of comparison on technique could be made (etc). However, be aware that mine turns all absolute URLS to relative (or attempts to) as I'm mucking about with the resource later on in my app. Cheers Simon Update: Naturally, $self and $tree refer to objects and methods that I haven't mentioned in my snippet. $tree is the TreeBuilder instance for those who couldn't guess.
In Section
Code Catacombs
|
|