WWW::Google::Calculator3pm
Perl interface for google calculator
Usage
use WWW::Google::Calculator;my $calc = WWW::Google::Calculator->new;print $calc->calc('1+1'); # => 1 + 1 = 2print $calc->calc('300kbps in KB/s'); # => 300 kbps = 37.5 kilobytes / second
Overview
This module provide simple interface for Google calculator.
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
Releases
10 releases since Debian 4.0 (Etch); the text changed 4 times.