in reply to Monitor queries for new finds added to the Google index yesterday

You aren't checking to see if your call worked. You should be doing something like:
my $result = $google_search->doGoogleSearch(...); if( $result->fault ){ die "Oops, our soap call failed: ".$som->faultstring; } # No fault, do stuff with your $result
  • Comment on Re: Monitor queries for new finds added to the Google index yesterday
  • Download Code

Replies are listed 'Best First'.
Re^2: Monitor queries for new finds added to the Google index yesterday
by Scott7477 (Chaplain) on Nov 07, 2006 at 16:12 UTC
    Good point. When I was working on this code before posting it to PM, I had changed the Soap::Lite call to include its trace functionality as follows:

    use SOAP::Lite +trace;

    In order to get that to work, I had to comment out the "use strict;" line. Doing the above showed me that I had miskeyed my Google API key. I fixed that and then removed the "+trace" from the Soap::Lite call. I've updated the code to include a line to flag failure in the Soap::Lite call along the lines of your suggestion.