use WWW::Mechanize; my $mech = WWW::Mechanize->new(); $mech->get("http://search.cpan.org/"); $html = $mech->content(); $s = '