cgrafham has asked for the wisdom of the Perl Monks concerning the following question:

when trying to retrieve a URL I get the following error: $ perl -MWWW::Mechanize::Shell -eshell Module File::Modified not found. Automatic reloading disabled. (no url)>get http://news.bbc.co.uk Retrieving http://news.bbc.co.uk(200) Can't call method "agent" on an undefined value at /home/<user>/perllib/lib/site_perl/5.8.6/WWW/Mechanize/Shell.pm line 310, <FIN> line 1. I'm not sure how to resolve it.

Replies are listed 'Best First'.
Re: WWW::Mechanize::Shell problem
by Corion (Patriarch) on Jan 17, 2007 at 10:28 UTC

    This is a bug in WWW::Mechanize::Shell v0.39 - I haven't fixed that bug yet so the only solution is to downgrade to v0.38.