Skip Menu |

This queue is for tickets about the HTML-SimpleLinkExtor CPAN distribution.

Report information
The Basics
Id: 77993
Status: rejected
Priority: 0/
Queue: HTML-SimpleLinkExtor

People
Owner: Nobody in particular
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.25
Fixed in: (no value)



Subject: Produce link map
It would be nice to have a link_hash method, returning a hash whose keys are the text and values are URLs. e.g. scanning <A HREF="http://www.perl.org">Click</A> Would return ( 'Click' => 'http://www.perl.org' )
On Sun Jun 24 13:20:13 2012, NHORNE wrote: Show quoted text
> It would be nice to have a link_hash method, returning a hash whose keys > are the text and values are URLs.
This module doesn't do anything to save the link text. You could do something similar with a completely different subclass of HTML::Parser though. :)
Subject: Re: [rt.cpan.org #77993] Produce link map
Date: Sun, 24 Jun 2012 16:13:00 -0400
To: bug-HTML-SimpleLinkExtor [...] rt.cpan.org
From: Nigel Horne <njh [...] bandsman.co.uk>
On 06/24/2012 03:02 PM, brian d foy via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=77993> > > On Sun Jun 24 13:20:13 2012, NHORNE wrote:
>> It would be nice to have a link_hash method, returning a hash whose keys >> are the text and values are URLs.
> This module doesn't do anything to save the link text. You could do something similar with a > completely different subclass of HTML::Parser though. :)
Would a subclass of HTML::SimpleLinkExtor be possible?
Download smime.p7s
application/pkcs7-signature 4.3k

Message body not shown because it is not plain text.

Since this module does not record the link text, it's much easier to just make a subclass of HTML::Parser. If you want to try to make a subclass, that's up to you, but it's nothing to do with this module. Please don't reply to this. RT re-opens tickets on replies, and I'm closing this one. Good luck,