Jon Portnoy > Bot-Cobalt-Plugin-Calc-0.004003 > Bot::Cobalt::Plugin::Calc

Download:
Bot-Cobalt-Plugin-Calc-0.004003.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.004003   Source  

NAME ^

Bot::Cobalt::Plugin::Calc - Calculator plugin for Bot::Cobalt

SYNOPSIS ^

  # See Math::Calc::Parser ->
  !calc 2 + 2
  !calc 0xff << 2
  !calc int rand 5

DESCRIPTION ^

A Bot::Cobalt calculator plugin using Math::Calc::Parser.

See the Math::Calc::Parser documentation for details on acceptable expressions.

(This plugin uses a "safe-ish" forked worker to do the actual calculations, with resource limits in place to avoid denial-of-service attacks via large factorials and similar.)

AUTHOR ^

Jon Portnoy <avenj@cobaltirc.org>

syntax highlighting: