/
View dependency graph
Depends on
- debhelper (debhelper)
- libclass-accessor-perl (libclass-accessor-perl)
- libhtml-parser-perl (libhtml-parser-perl)
- libtest-base-perl (libtest-base-perl)
- libtest-pod-coverage-perl (libtest-pod-coverage-perl)
- libtest-pod-perl (libtest-pod-perl)
- liburi-perl (liburi-perl)
- libwww-mechanize-perl (libwww-mechanize-perl)
- perl (perl)
README (full)
NAME
WWW::Google::Calculator - Perl interface for Google calculator
SYNOPSIS
use WWW::Google::Calculator;
my $calc = WWW::Google::Calculator->new;
print $calc->calc('1+1'); # => 1 + 1 = 2
print $calc->calc('300kbps in KB/s'); # => 300 kbps = 37.5 kilobytes / second
DESCRIPTION
This module provide simple interface for Google calculator.
SEE ALSO
http://www.google.com/help/calculator.html
METHODS
new
create new instance
calc( $query )
calculate $query using by Google and return result.
return undef when something error occurred. (and use $self->error to get
last error message)
parse_html
error
return last error
AUTHOR
Daisuke Murase <[email protected]>
COPYRIGHT
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included
with this module.
| dir | debian/ |
| dir | inc/ |
| dir | lib/ |
| dir | t/ |
| file | Changes |
| file | LICENSE |
| file | MANIFEST |
| file | META.yml |
| file | Makefile.PL |
| file | README |
| file | Todo |