Tie::GoogleTie::Google is a Perl module with single-variable access to Google search results. | |
Download |
Tie::Google Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Darren Chamberlain
- Publisher web site:
- http://search.cpan.org/~darren/Tie-Google-0.03/Google.pm
Tie::Google Tags
Tie::Google Description
Tie::Google is a Perl module with single-variable access to Google search results. Tie::Google is a Perl module with single-variable access to Google search results.SYNOPSIS my $KEYFILE = glob "~/.googlekey"; my ($g, @g, %g); # Tied array interface tie @g, "Tie::Google", $KEYFILE, "perl"; for my $r (@g) { printf " * %sn", $r->{'URL'}, $r->{'title'}; } # Tied hash interface tie %g, "Tie::Google", $KEYFILE; for my $term (qw) { my $res = $g{$term}; printf "%d results for '%s:n", scalar @$res, $term; for my $r (@$res) { printf " * %sn", $r->{'URL'}, $r->{'title'}; } } # Tied scalar interface: I Feel Lucky use LWP::Simple qw(getprint); tie $g, "Tie::Google", $KEYFILE, "perl"; getprint($g->{'URL'}); Requirements: · Perl
Tie::Google Related Software