logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

WWW::Google::Calculator - Perl interface for Google calculator

Author

       Daisuke Murase <typester@cpan.org>

Description

       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_htmlerror
       return last error

Name

       WWW::Google::Calculator - Perl interface for Google calculator

See Also

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

See Also