WWW::Google::Calculator(3pm)

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 = 2
    print $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.

  1. 4.0
  2. 5.0–6.0
  3. 7–9
  4. 10
  5. 11–13

Author

Daisuke Murase <[email protected]>

From libwww-google-calculator-perl 0.07-2.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.