I'm using the code below to try to search Google Scholar from my website and it will work once or twice and then I get the error "Error GETing http://scholar.google.com: Can't connect to scholar.google.com:80 (Permission denied)" - the code I'm using is as follows:
use strict;
use WWW::Mechanize;
my $browser = WWW::Mechanize->new();
$browser->get('http://scholar.google.com');
$browser->form_name('f');
$browser->field('q','PCR');
$browser->submit();
print $browser->content();
Any tips or advice is greatly appreciated