For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > November 2005 > Text extraction









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Text extraction
newhorizonz

2005-11-12, 5:47 pm

I have a small script that use the LWP::Simple module to read a page on a website to a variable $content. This page contains a list of Euro currency conversions and I need to extract the current exchange rate against British Pounds so that I can use it in calculations on my website.

The value I want is about halfway down the html page in a table consisting of 3 columns:

GBP Pound Sterling 0.6731

Can anyone please advise how I can use Perl to scan the page contents for this piece of information and extract it out to a file.

Thanks
Alan
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com