Debian Codegraph @

README

raw
1 NAME
2 WWW::Google::Calculator - Perl interface for Google calculator
3
4 SYNOPSIS
5 use WWW::Google::Calculator;
6
7 my $calc = WWW::Google::Calculator->new;
8
9 print $calc->calc('1+1'); # => 1 + 1 = 2
10 print $calc->calc('300kbps in KB/s'); # => 300 kbps = 37.5 kilobytes / second
11
12 DESCRIPTION
13 This module provide simple interface for Google calculator.
14
15 SEE ALSO
16 http://www.google.com/help/calculator.html
17
18 METHODS
19 new
20 create new instance
21
22 calc( $query )
23 calculate $query using by Google and return result.
24
25 return undef when something error occurred. (and use $self->error to get
26 last error message)
27
28 parse_html
29 error
30 return last error
31
32 AUTHOR
33 Daisuke Murase <[email protected]>
34
35 COPYRIGHT
36 This program is free software; you can redistribute it and/or modify it
37 under the same terms as Perl itself.
38
39 The full text of the license can be found in the LICENSE file included
40 with this module.
41