Simon Wistow > Bot-BasicBot-Pluggable-Module-Tools-0.96 > Bot::BasicBot::Pluggable::Module::Convert

Download:
Bot-BasicBot-Pluggable-Module-Tools-0.96.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Bot::BasicBot::Pluggable::Module::Convert - convert between units

SYNOPSIS ^

Uses Math::Units to convert between various formats. You do

    18:14 <muttley> convert 1 m into miles
    18:14 <dipsy> 1 m is 0.000621371192237334 miles
    18:14 <muttley> convert 1 min to seconds
    18:14 <dipsy> 1 min is 60 seconds

and

    18:14 <muttley> convert 1 gallon into cm^3
    18:14 <dipsy> 1 gallon is 3785.411784 cm^3

and even

    18:13 <muttley> convert 100 hz into rpm
    18:13 <dipsy> 100 hz is 6000 rpm

Or can use Finance::Currency::Convert::XE to convert between currencies:

    15:30 <muttley> change 10 GBP to USD
    15:30 <dipsy> 10 GBP is 18.91 USD

Which is cool.

IRC USAGE ^

    convert <quantity> <unit> to <other unit>
    
    exchange <quantity> <currency> to <other currency>

AUTHOR ^

Simon Wistow, <simon@thegestalt.org>

COPYRIGHT ^

Copyright 2005, Simon Wistow

Distributed under the same terms as Perl itself.

SEE ALSO ^

Math::Units

syntax highlighting: