Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 taking refuge in the Monastery: (7)
As of 2014-07-30 22:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (241 votes), past polls