July 24th, 2003, 03:21 PM
Using LWP module and getstore funtion
For some reason when I used LWP module, and getstore function. i tested it, it writes the source code of the webpage on to the text file. Is there a way so it writes only whats displayed on the web in the text file?
This is what the code looks like:
use lib '/path/to/lwp/';
$url = "http://www.myurl.com/";
$file = "/path/to/savefile.txt";
Last edited by robbyd; July 24th, 2003 at 03:54 PM.
July 24th, 2003, 04:42 PM
Search this forum for "strip HTML" for information about stripping HTML from a document. Hint: Regexes are the wrong way to do it.