Oh I am *bad* and *wrong*

Marcel Grünauer gr at univie.ac.at
Tue Dec 18 19:40:18 GMT 2007

On Dec 18, 2007, at 8:05 PM, Simon Wistow wrote:

>     print four.dollars.fifty.cents."\n";  # prints "4.55"

> Must. Stop. Crack. Making. Me. Go. Blind.

No. Make it pluggable already :)

For example, the Acme::Numbers::Plugin::Currency plugin might
declare to handle things like

     print four.dollars.fifty.cents.in.eur."\n";  # prints "3.16"
     print four.euro.fifty.cents.in.dollars."\n";  # prints "6.55"

via a trip to the nearest currency converter, or just transform it into
a Google query for "4.55 usd in eur".

Just an idea (/me whistles innocently).

"hanekomu" on Twitter, Jaiku, IRC and AIM
CPAN: http://search.cpan.org/~marcel/
Journal: http://use.perl.org/~hanekomu/journal/

More information about the london.pm mailing list