Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2016-12-11 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (169 votes). Check out past polls.