Re: considering HTML::Element's $tree->extract_links

Reinier Post (rp@win.tue.nl)
Wed, 28 Feb 2001 00:19:25 +0100


On Sat, Feb 24, 2001 at 05:11:02PM -0700, Sean M. Burke wrote:
> Some clever person wrote me earlier this month and suggested adding a
> feature to HTML::Element's extract_links method; and I want to
> run it past people who actually use the current method's behavior.

Count me in.

> What the person who wrote to me suggested was this:  make each item
> in the returned array contain not two subitems (attribute_value,
> $element), but THREE: (attribute_value, $element, attribute_name).
> 
> I think this is a wonderful idea.

Yes, definitely!  In fact, I'd be happy to get just the element.

> For anyone who uses extract_links, I'm asking:  would any of your code
> break if I added a third value to each sublist returned?

Mine won't.
 
-- 
Reinier