Hire a senior Perl / Python programmer today; download my up-to-date resume (PDF)
John Bokma Perl
freelance Perl programmer

Comments: Net-Google with ActiveState Perl

3 comments

If you want to use the Google APIs via Perl, a search at CPAN wile lead you to Net-Google. However, this distribution seems not to be available for the Active State version of Perl last time I checked (March, 30th, 2004).

Read the rest of Net-Google with ActiveState Perl.

Comments

With your guidance,I have downloaded the APIs,got the key and download the net-google module from CPAN,then I use the command "perl Makefile.pl" successful. But the next comes up against a problem as below:

# Please enter your Google API key:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX()
t\000-key.........ok
t\001-search......ok
t\002-spelling....NOK 5#     Failed test (t\002-spelling.t at line 42)
#	   got: 'nu york city'
#     expected: 'new york city'
# Looks like you failed 1 tests of 5.
t\002-spelling....dubious
	Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 5
	Failed 1/5 tests, 80.00% okay
t\003-cache.......ok
Failed Test	 Stat Wstat Total Fail	Failed	List of Failed
----------------------------------------------------------------------------

t\002-spelling.t    1	256	5    1	20.00%	5
Failed 1/4 test scripts, 75.00% okay. 1/18 subtests failed, 94.44%
okay.
NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0xff'
Stop.

The program exit. How to solve this problem?

Posted by boyeestudio at 09:22 GMT on 26 August 2005

Just ignore it. Somehow the spelling suggestion of Google stopped to return 'new york city' as a suggestion for 'nu york city'.

This bug already been reported (not by me): Bug #11386 Spelling test case does not work

So just move on to the next step: nmake install

Success!

Posted by John Bokma at 09:39 GMT on 26 August 2005

I seem to have installed ActiveState and Net::Google sucessfully. However, when I try to create a new Net::Google object, I get the following error:

Use of uninitialized value in concatenation (.) or string at C:/Perl/site/lib/Net/Google/Service.pm line 80. Service description 'file:' can't be loaded: 404 File `' does not exist

I took a look in the Services.pm file, it's kind of out of my league- I don't really know what it's doing or why it would fail. I was starting to think it just wouldn't work on windows until I found this site. Any suggestions?

CF

Posted by cailen at 04:30 GMT on 4 September 2006

Post a comment

Note that your comment doesn't show up immediately. I review each comment before I add it to this site.

Check the Follow this page option if you want to receive an email each time a comment is posted to this page, including yours. A link to turn this option off will be included with each email.

Internet adresses will be converted automatically. You can use the following notation to specify anchor text for a link: [url=http://example.com/]example text[/url].