Definitely appears to be network related as I'm getting this when using 
warnings/fatalsToBrowser:

Error GETing http://www.easyjet.com/en/: Can't connect to www.easyjet.com:80 
(connect: Connection refused)


> Date: Wed, 13 Mar 2013 14:19:00 -0700
> Subject: Re: Mechanize: first attempt at scraping (should be something 
> trivial)
> From: dery...@gmail.com
> To: iamnotregiste...@hotmail.com
> CC: beginners@perl.org
> 
> On Wed, Mar 13, 2013 at 1:08 PM, G M <iamnotregiste...@hotmail.com> wrote:
> > Hi,
> >
> > Yeah I tried putting a die line in after doing a bit of googling, I've got a
> > print "mech ran" line where you've got "die", doesn't print anything out
> > though :(
> >
> >
> >
> 
> Hm, the problem is that Mech by default throws fatal errors so if
> it couldn't fetch content, your program dies before "mech ran"
> occurs. Only if you said $agent->new(autocheck=>0), would you
> see it.
> 
> You can see the differing output in these:
> 
> $agent->new(autocheck=>0);  # toggle 0/1
> $agent->get("http://nowhere.com/nono";);
> print "mech ran";
> 
> -- 
> Charles DeRykus
> 
> -- 
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
> 
> 
                                          

Reply via email to