WWW::G...culator(3pm)
π WWW::Google::Calculator π
okay bestie, welcome to the manual page for WWW::Google::Calculator β it's a Perl interface for Google calculator, and it's lowkey iconic for how much it does with so little. Perl docs, but make it cute. Let's go β¨
πΈ SYNOPSIS πΈ
like, here's the whole vibe in four lines:
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 that? you make one object, you ask it math, it answers you. that's it. that's the whole relationship. π«Ά
π¦ DESCRIPTION π¦
This module provides a simple interface for Google calculator. no cap, that's literally the whole deal β simple, direct, does what it says on the tin. π
π METHODS π
π new
creates a new instance. brand new baby object, fresh out the box. β¨
π calc( $query )
calculates $query using Google and returns the result. you hand it a string, it hands you back an answer. main character behaviour fr.
it returns undef when something errors out, so keep an eye on that. π and if you need the tea on what went wrong, call $self->error to get the last error message.
π§ parse_html
(no description given, bestie β it's just here, doing its thing, iykyk π)
π error
returns the last error. your little receipt for whatever just went sideways.
π SEE ALSO π
π AUTHOR π
Daisuke Murase <typester@cpan.org>
β COPYRIGHT β
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 LICENSE file included with this module.
okay periodt, that's the whole page π go forth and calculate, bestie πΈ
perl v5.32.0 Β· 2021-01-08 β that's the version and date this page shipped with, mwah π
π¦ where this page comes from
- debian bookworm: libwww-google-calculator-perl 0.07-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libwww-google-calculator-perl 0.07-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libwww-google-calculator-perl 0.07-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libwww-google-calculator-perl 0.07-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libwww-google-calculator-perl 0.07-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libwww-google-calculator-perl 0.07-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms