in reply to WWW::Mechanize reading HTML

Basically what I need is to parse HTML and get all links from there with some conditional filtering.

Use a HTML parser, like WWW::Mechanize does. WWW::Mechanize uses HTML::Form and HTML::TokeParser. Involving WWW::Mechanize in analysing a HTML file is just nonsense.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^2: WWW::Mechanize reading HTML
by vit (Friar) on Sep 12, 2011 at 23:15 UTC
    Thanks a lot! I used HTML::TokeParser which inputs HTML. Works perfect.