Just
eval it, and if you get some numeric output, it's likely to be a math
expression :-)
To detect conversions - define the associated units as constants, and interpolate
a multiplication, e.g. s/h/ * 3600/ to normalize hours and calculate with seconds.
A hash table unit => constant is handy for that...
(just a half-baked idea .)
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}