use Win32::OLE; my $ie = Win32::OLE->new('InternetExplorer.Application') or die $@; $ie->{'visible'} = 1; $ie->navigate( "http://search.cpan.org/" ); # I think you need some kind of waiting loop here.... # You can access the DOM $ie->{'document'}->{'links'}->{'length'}; # JS : document.links.length