Skip Menu |

This queue is for tickets about the Net-Google CPAN distribution.

Report information
The Basics
Id: 2142
Status: resolved
Priority: 0/
Queue: Net-Google

People
Owner: Nobody in particular
Requestors: sherzodr [...] handalak.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.52
Fixed in: (no value)



Subject: warning while running with "-w" swtich
Hi Aaron. Thanks for the awesome Net::Google. It is just great. I noticed a warning while running under "-w" switch. The following touch to response() method of Search.pm should solve the problem: --- Search.pm Sat Feb 22 00:07:23 2003 +++ Search.pm.patched Sat Feb 22 00:07:50 2003 @@ -451,6 +451,7 @@ sub response { my $self = shift; + $self->{'__state'} ||= ''; if ($self->{'__state'} eq $self->_state()) { return $self->{'__response'}; } Another note... I just uploaded a command-line google search interface to CPAN. It's just a script that uses Net::Google for querying google. I thought you may be interested in making it as part of Net-Google distribution, that's where it'd better foolow anyways. Untill it's available from CPAN, you can download it from http://www.handalak.com/tmp/google-1.3.tar.gz . Manual: http://www.handalak.com/tmp/google.html Thanks, one more time, for Net::Google
This will be fixed in version 0.53 I'm actually going to check for the defined-ness of the '__state' key before comparing it, rather than setting it to an empty string, but the end result is the same. Thanks for the head's up! As for the CLI google interface, I would suggest bundling it up as Net::Google::Term or Term::Google and including a bare-bones wrapper script that could be in stuck in /usr/local/bin That way I can just plug Google search-ability into my own CLI tools without having to make system() calls :-) Anyway, I'm still not entirely clear on how/when namespaces get assigned but if you like Net::Google::Term and need someone to second it, I'd be happy to do it.