in reply to problem parsing html

"Doesn't work" isn't very specific :)

Try adding

warn "td $td"; warn "a $a";
before next unless $a; and show what you get

Replies are listed 'Best First'.
Re^2: problem parsing html
by paola82 (Sexton) on Jul 15, 2009 at 14:33 UTC
    td HTML::Element=HASH(0x85a6a18) at test6.pl line 21. Use of uninitialized value in concatenation (.) or string at test6.pl line 22. a at test6.pl line 22.
      Switch with
      my( $a ) = $td->look_down(_tag => q{a});
        that gave to me the same as before...I don't know why