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>


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