I would like a Perl script written that pulls a stock quote off of Yahoo Finance or some other free finance site. The stock quote I'm using initially is [url removed, login to view]
It needs to accept a user defined stock symbol (specify using a variable at the top of the script).
It needs to output a modifiable string of HTML code. I would like it to initially be:
"Most recent trade: $PRICE<br>Today's Change: $CHANGE"
This script will be integrated into the middle of a PHP web site, and should insert the text where the script is called from. I may need assistance getting the script to run on my web server. I do not wish to modify the server in any way (i.e. upgrade perl, install extra libraries, etc).
I have verified that the following script runs successfully:
print "Content-type: text/html\n\n";
print "Hello, world!\n";