My problem is that the compiler gives me error messages i can't get the hang of. It says:***************************************** 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); ************************************
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
In reply to Failure to create user agent object by lampros21_7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |