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

Hi, i am trying to write a program for a web crawler and i could do with some help. The start of my code is written below:
***************************************** use WWW::Robot; #Module used to strip the contents from the HTML(leave only the text) print "Please input the URL of the site to be searched \n"; $url_name = <STDIN>; # The user inputs the URL to be searched #Create an instance of the webcrawler $web_crawler = new WWW::Robot('NAME' => 'My WebCrawler', 'VERSION' => '1.000', 'EMAIL' => 'email@email'); #Below the attributes of the web crawler are set $web_crawler->addHook('invoke-on-all-url', \&invoke_test); ************************************
My problem is that the compiler gives me error messages i can't get the hang of. It says:

WWW::Robot: failed to create User Agent object: LWP::RobotUA from address required at C:/Perl/site/lib/WWW/Robot.pm line 1160.

I have tried various things to get round this but can't seem to find the problem. I suspect its something simplebut havent got the knowledge to find what. The WWW::Robot and LWP::RobotUA are installed with my version of Perl. Thanks for viewing

20050719 Edit by ysth: p, code tags

Replies are listed 'Best First'.
Re: Failure to create user agent object
by tlm (Prior) on Jul 20, 2005 at 00:57 UTC

    FWIW, I get the same error, using the code provided in the synopsis section of the docs. It looks like a bug to me.

    the lowliest monk