use LWP::Simple; ... sub convert { $_=get("http://www.oanda.com/converter/ classic?value=$amount&exch=$fc&expr=$tc"); s/^.*