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