[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Speaking of contribs..



Hey folks,

Not sure if this made it around, I may have just sent it to oz. This will do
unit conversions (using Math::Units).

trigger is:

convert 5 feet to mm

or 

convert 5 feet mm

Here is the trigger:

if(defined $param{'convert'} && $message =~ /^\s*convert\s+[+-]?\w/) {
        $message =~ s/ to / /i;
        &convert;
        return 'NOREPLY';
}

attached is the script..

Cheers,
Kevin

convert.pl