On Tue, Mar 18, 2014 at 11:35:06AM +0000, Perl Authors Upload Server wrote: > > The following module was proposed for inclusion in the Module List: > > modid: Conversion > DSLIP: adphp > description: convert between various units of measurement > userid: ELOHMROW (Bradley Andersen) > chapterid: 23 (Miscellaneous_Modules) > communities: > https://github.com/duckduckgo/zeroclickinfo-goodies/pull/356 > > similar: > Convert::Temperature > > rationale: > > I wrote a conversions goodie (zero-click answer) for duckduckgo > (DDG). After struggling to find existing Perl modules to #include, I > came up with a neat way to convert between any two units. I want to > re-factor my DDG code for use on CPAN. > > Right now, my code can do conversions for these types: mass, > length, time, pressure, energy, power, angles, force, and > temperature. It is trivial (requires adding an array) to add new > unit types. In fact, today I plan to add support for digital storage > (bits, bytes, etc.) and cooking (cups, tsp, etc.)
Convert::Pluggable would sound good then. Also look at modules matching Units for ideas. -- Matt S Trout - Shadowcat Systems - Perl consulting with a commit bit and a clue http://shadowcat.co.uk/blog/matt-s-trout/ http://twitter.com/shadowcat_mst/ Email me now on mst (at) shadowcat.co.uk and let's chat about how our CPAN commercial support, training and consultancy packages could help your team.