On Thu, Jan 17, 2002 at 10:10:16AM +1000, Lorne Easton wrote: > Thanks for the advice. I looked at using HTML::LinkExtor but decided against > it.
Why would you do that? HTML is deceptively difficult to parse; given a choice, an already mature parser is usually much preferable to a hand-rolled solution. I would suggest using HTML::SimpleLinkExtor. use HTML::SimpleLinkExtor; sub get_urls { my ($data) = @_; print $data; my $extor = HTML::SimpleLinkExtor->new(); $extor->parse($data); return $extor->a; } Michael -- Administrator www.shoebox.net Programmer, System Administrator www.gallanttech.com -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]