|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: The Definitive Unit Conversion Scriptby mojotoad (Monsignor) |
| on Dec 13, 2002 at 19:48 UTC ( #219724=note: print w/ replies, xml ) | Need Help?? |
|
I was interested in tye's quip about dealing with unit specifications such as 'kg/m/m' vs 'kg/m^2'...so I started digging around on CPAN for tokenizers that might assist in normalizing unit representations. There's some infix/postfix stuff, as well as various tokenizers such as Math::Expr that might be of assistance here. Perhaps more importantly, there's some unit conversion modules already out there that might bear further scrutiny:
Math::Units Of these, the Convert-Units bundle seems to be on the money, since in the author's words:
Hope these are of assistance. At the very least, you can mine the modules for conversion tables! Matt
In Section
Code Catacombs
|
|
||||||||||||||||||||||