Home > Mobile >  Why does Perl Net::Google::Search fail for me?
Why does Perl Net::Google::Search fail for me?

Time:11-24

I am having the following trouble getting Net::Google::Search to work. I have obtained an API key from google so I assume my attempted usage is copacetic.

use strict;
use Net::Google::Search;

my %args = (

    key => 'MyGoogleAPIKey',
    starts_at => 0,
    max_results => 5,

    );

my $search = Net::Google::Search->new(\%args);

Executing this code I get:

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

CodePudding user response:

According to this ticket, the API used by Net::Google::Search has been dead since 2009, and it hasn't even been possible to install the module since 2005.

I don't know if that's the issue you are facing, but it doesn't matter. You're not going to get anywhere with that module.

  •  Tags:  
  • perl
  • Related