Log in



Archive for August, 2010

How can I get the dynamically updated price of gold into a variable in my Perl script?

August 31st, 2010 by

Question by yucateca1: How can I get the dynamically updated price of gold into a variable in my Perl script?
I’m trying to create a simple form calculator that will take today’s price of gold and multiply it by a number. I’m doing this on a webpage in Perl.

So [Variable which has price of gold} * [Variable with inputted number] = Answer.

Thanks for any help!

Best answer:

Answer by Colanth
Get the current price from Oanda.com. (Gold is XAU.) Once you have that you should be able to figure out the rest. (Your program can query their site for the exchange rate – we get a 10X10 grid (exchange rates for the 10 currencies we need) every night.

If you’re going to be hitting the site hard, you should contact them first – we only hit them once every 24 hours. (How often you get the rate depends on how accurate a rate you need at the moment – we only care about the daily rate.)

Give your answer to this question below!

Perl Fundamentals: introduction with Peter J. Scott

August 31st, 2010 by

This video is the introduction with Peter J. Scott. Learn the basic Elements of Perl every developer should learn. This video is derrived from the actual product which contains 4+ Hours of video instruction on DVD with an accompanying course book. You can buy it at major retailers, or directly from Addison-Wesley here: www.informit.com In this unique video package, renowned Perl author and speaker Peter Scott takes you through the fundamental elements of the Perl 5 language so that you have a strong foundation for creating robust Perl programs and learning more advanced aspects of the language. This video has been edited from it’s original version to play in YouTube, and therefore the quality in this sample is not in any way indicative of the quality of the actual product.
Video Rating: 3 / 5


Powered by Yahoo! Answers