"what prompted the author to return the results as an array with a hash as the second item? "

Where do you get that from?

"It's kind of confusing me. For a start, if it's a hash, shouldn't that be ..."

It's not a hash, where do you get hash from?

And why is print "$tag @{[%links]}\n"; scary to you?

More than anything it's kind of silly to me, cause all that sub needs to be is  print "@_\n";

update:
"And more to the point, I'm racking my not-inconsiderable knowledge of HTML to try and find a situation where a single tag could have two or more attributes which were links.".

AFAIK, no attributes are ever "links". Duplicate SRC attributes wouldn't be valid HTML, and one of the 2 would be ignored. It's like this, if anyone writing HTML wants anybody to somewhat accurately interpret it, well, he's gotta write valid HTML, right? (right)

____________________________________________________
** The Third rule of perl club is a statement of fact: pod is sexy.


In reply to Re: Why Would HTML::LinkExtor return a hash of attributes? by PodMaster
in thread Why Would HTML::LinkExtor return a hash of attributes? by Cody Pendant

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.