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

Has anyone had experience using googly.pl? I have been trying to run it on my server. I have a Google key and I downloaded GoogleSearch.wsdl. Both the wsdl and googly.pl are currently residing in my cgi-bin (where I will use them once I get it working). However, when I run googly at the command line, I get the error "Bareword found where operator expected at googly.pl line 38, near "->Program Google" (Missing operator before Google?)"

I'm not sure what the problem could be, I'm using googly.pl straight from the Google perl hackers.

Thanks.

Replies are listed 'Best First'.
Re: Google API with googly.pl
by Fletch (Bishop) on Apr 14, 2005 at 18:45 UTC

    The copy I found when I googled looks like that line should be

    $result->{'title'} || "no title",

    Something may have gone awry in whatever templating transformation that went through.

    Update: I'm just guessing here; I don't know what the Google API returns offhand but just going by context . . . . Also note that it's helpful to either post the code you're having problems with or a link rather than a nebulous pointer so some code called foo.pl you got from that guy (you know, the one that wears those shirts with the things).