SPUG: parsing a web page

Luis Medrano lmzaldivar at mac.com
Thu Sep 16 14:02:58 CDT 2004


List,
I'm trying to parse a web page but I don't understand the following:
1.-I get the content of the page using this script:

#!/usr/bin/perl
use LWP::Simple;
@content=get("http://google.com");
print "$content[0] \n";

2.-but all the content is $content[0] like if was just one line of content. 

Any of you know what is going on?

Thanks,
Luis



More information about the spug-list mailing list