in reply to Little issue perl script with WWW::Mechanize 1.73
in thread perl script logging into multiple routers

I commented on your original post, but you removed the content from there to create this node. Try disabling "autocheck" in the object instantiation when calling new().

my $browser = WWW::Mechanize->new( autocheck => 0 );

-stevieb

ps. As I noted in the other thread, please don't remove the contents of a post after it has been submitted, as it completely throws out of context all replies to it.

Replies are listed 'Best First'.
Re^2: Little issue perl script with WWW::Mechanize 1.73
by Corion (Patriarch) on May 20, 2015 at 06:26 UTC

    I don't think papering over all errors is a good approach, especially for somebody new to WWW::Mechanize. I would instead suggest trapping the initial failure case within eval {...} and then skipping the device if the connection fails.