in reply to playing an array of google search results

Some odd things about your program: You have use www::mechanize, instead of WWW::Mechanize. Your print to stdout - but that's an unopened filehandle. Perhaps you mean STDOUT, but then you can leave it off. Your code isn't using any hashes, or hash references.

Also, you aren't checking the result of your get. Perhaps it failed.

It may help if you give us some real code that has the unwanted behaviour, and give us the real error messages.

Perl --((8:>*
  • Comment on Re: playing an array of google search results

Replies are listed 'Best First'.
Re^2: playing an array of google search results
by sub_chick (Hermit) on Nov 30, 2005 at 00:22 UTC
    Is it possible that the perl is seeing
    my $url ='http://www.google.co.uk/search?hl=en&safe=off&q=intitle%3A%2 +2football+scores%22+inurl%3Aresults&meta=cr%3DcountryUK%7CcountryGB';
    and is looking at % as hashes? I am fairly new and was just wondering.