February 2006
Intermediate to advanced
304 pages
6h 16m
English
When traveling internationally, it's very easy to become confused by the differences between the various currencies out there. Knowing the exchange rate is vital for international transactions.
Converting between one currency and another is a simple calculation, providing you know the exchange rate. Since rates are continually changing, that can prove to be a bit tricky. This script actually goes to a website maintained by XE.com, downloads the exchange rate, and then performs the calculation. This means that the result will be an accurate conversion using up-to-the-minute rates.
1 # 2 # Convert currency from one type to another 3 # 4 # Usage: money.pl <amount><from-code> <to-code> 5 # 6 # Where: 7 # <from-code>, ...