RE: read source file of .html

2002-01-15 Thread McCollum, Frank
. -Original Message- From: Gary Hawkins [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 2:26 AM To: [EMAIL PROTECTED] Subject: RE: read source file of .html use LWP. it can be as simple as this : use LWP::Simple; print get(http://www.mit.edu;); Tor. Neat. Along

RE: read source file of .html

2002-01-15 Thread Gary Hawkins
That works. It became tweaked a little, $page = shift to be able to alter the result, and a '/' b/c a top-level URL without file name and without trailing forward slash gets redirected on the server to the version with the trailing forward slash. A little quicker. In detail, I think that

Re: read source file of .html

2002-01-14 Thread victor
use LWP. it can be as simple as this : use LWP::Simple; print get(http://www.mit.edu;); Tor. yun yun wrote: if I want to read the real html file from web, such as http://www.mit.edu, should I use sock programming? and if then, how could I use,and where can I study this aspect? Thanks!

RE: read source file of .html

2002-01-14 Thread Gary Hawkins
use LWP. it can be as simple as this : use LWP::Simple; print get(http://www.mit.edu;); Tor. Neat. Along that line, I would like to be able to wind up with pages after retrieval as plain text without html tags, hopefully using a module. /g -- To unsubscribe, e-mail: [EMAIL

Re: read source file of .html

2002-01-14 Thread Briac Pilpré
Gary Hawkins wrote: Along that line, I would like to be able to wind up with pages after retrieval as plain text without html tags, hopefully using a module. Here's a really quick way to do so using HTML::Parser, it can probably use some tweaking. Hope this helps, Briac #!/usr/bin/perl -w