POE::Component::IRC::Plugin::Google::Calculator

POE::Component::IRC::Plugin::Google::Calculator is a Perl module that offers non-blocking access to Google's calculator via IRC.
Download

POE::Component::IRC::Plugin::Google::Calculator Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Zoffix Znet
  • Publisher web site:
  • http://search.cpan.org/~zoffix/

POE::Component::IRC::Plugin::Google::Calculator Tags


POE::Component::IRC::Plugin::Google::Calculator Description

POE::Component::IRC::Plugin::Google::Calculator is a Perl module that offers non-blocking access to Google's calculator via IRC. POE::Component::IRC::Plugin::Google::Calculator is a Perl module that offers non-blocking access to Google's calculator via IRC.SYNOPSIS use strict; use warnings; use POE qw(Component::IRC Component::IRC::Plugin::Google::Calculator); my $irc = POE::Component::IRC->spawn( nick => 'CalcBot', server => 'irc.freenode.net', port => 6667, ircname => 'Google Calculator Bot', ); POE::Session->create( package_states => , ], ); $poe_kernel->run; sub _start { $irc->yield( register => 'all' ); $irc->plugin_add( 'GoogleCalc' => POE::Component::IRC::Plugin::Google::Calculator->new ); $irc->yield( connect => {} ); } sub irc_001 { $_->post( $_ => join => '#zofbot' ); } < Zoffix > CalcBot, calc 2+2 < CalcBo > Result: 2 + 2 = 4 < Zoffix > CalcBot, calc USD in CAD < CalcBot > Result: 1 U.S. dollar = 0.99990001 Canadian dollars < Zoffix > CalcBot, calc mile in kilometer < CalcBo > Result: 1 mile = 1.609344 kilometerRequirements:· Perl Requirements: · Perl


POE::Component::IRC::Plugin::Google::Calculator Related Software