Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

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