There are many problems here - first, why are you looping like that:
for (@list) { $list[$count]; #yadda yadda $count++; }
Either use the elements of the list or access the indexes like so:
for my $count (0..$#list) { $list[$count]; #yadda yadda }
Second - use a Parser! If HTML::LinkExtor won't do the job then try HTML::TokeParser or HTML::Parser. You did not specify what you are trying to accomplish with this code, so i can't really help you much more. Even though you have managed to get this technique to work on other pages, i still question it's robustness. Trust me, use a parser - it might even be as simple as:
use strict; use Data::Dumper; use HTML::TokeParser; my $data = do {local $/;<DATA>}; my $parser = HTML::TokeParser->new(\$data); my %hash; while (my $tag = $parser->get_tag('a')) { $hash{$tag->[1]->{href}}++; } print Dumper \%hash; __DATA__ <tr align="left" valign="top"> <td align="left" valign="top"> <table C +ELLPADDING="0" CELLSPACING="0"><tr><td> <a href="page.cfm?objectid=11 +933900&method=full&siteid=50144" CLASS="smallteaserpic">Costly false +alarms</a><BR> <font CLASS="headtypea"> A new policy aimed at tackling the huge waste of police time attending + false security alarm calls is to be introduced this week <a href="pa +ge.cfm?objectid=11933900&method=full&siteid=50144">more</a> </font> </td></tr></table> <p> <table CELLPADDING="0" CELLSPACING="0"><tr><td> + <a href="page.cfm?objectid=11933890&method=full&siteid=50144" CLASS= +"smallteaserpic">Mindless yobs terrorise OAP's</a><BR>

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

In reply to (jeffa) Re: Problems splitting HTML in to hash table by jeffa
in thread Problems splitting HTML in to hash table by Popcorn Dave

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.