Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Using up-to-date currency conversion rates

by alexm (Chaplain)
on Sep 05, 2008 at 17:11 UTC ( #709343=CUFP: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    $cache->set("$currency_from:$currency_to", $ratio);
    print "$amount $currency_from = ", $amount * $ratio, " $currency_to\n"
    +;
    
  2. or download this
    $ perl exchange.pl 100 usd eur
    100 USD = 70.22 EUR
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: CUFP [id://709343]
Approved by kyle
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2015-07-06 23:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (85 votes), past polls