On Wed, Mar 13, 2013 at 1:08 PM, G M <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/