GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  WEBSERVICE::GOOGLE::SETS (3)

.ds Aq ’

NAME

WebService::Google::Sets - Perl access to Google Labs Sets site

CONTENTS

SYNOPSIS



  use WebService::Google::Sets;

  my @os_list = qw(Linux Windows Solaris);
  my $expanded_os_list = get_gset(@os_list);

  # check something came back
  die "No results returned from server" unless $expanded_os_list;

  foreach my $element (@$expanded_os_list) {
    print $element, "\n";
  }



DESCRIPTION

WebService::Google::Sets provides function based access to the Sets service hosted at Google Labs.

The Sets service attempts to expand the values you provide. The example provided in the SYNOPSIS would return an array that included Windows NT, HPUX and AIX as values in addition to those supplied.

FUNCTIONS

By default this module exports get_gset.
get_gset A utility alias for get_small_gset.

Exported by default.

get_small_gset This function takes an array of terms to expand and attempts to expand them using the Google Sets website.

It returns undef on failure to connect to the remote server and an array reference pointing to the expanded list on success.

get_large_gset This function takes an array of terms to expand and attempts to expand them using the Google Sets website. It returns a larger list than get_small_gset or get_gset.

This function must be explictly imported.



  use WebService::Google::Sets qw(get_large_gset);



It returns undef on failure to connect to the remote server and an array reference pointing to the expanded list on success.

COMMAND LINE PROGRAM

A very simple script called get_gset is supplied in the distribution’s bin folder. It accepts between one and five values and then attempts to expand them.

DEPENDENCIES

WebService::Google::Sets requires the following modules:

CGI

LWP

LICENCE AND COPYRIGHT

Copyright (C) 2006 Dean Wilson. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Dean Wilson <dean.wilson@gmail.com>
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 WEBSERVICE::GOOGLE::SETS (3) 2009-01-26

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.