Perl interface for google calculator
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
This module provide simple interface for Google calculator.
http://www.google.com/help/calculator.html
create new instance calculate $query using by Google and return result.
return undef when something error occurred. (and use $self->error to get last error message)
return last error
Daisuke Murase <[email protected]>
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 \s-1LICENSE\s0 file included with this module.