2007/8/30, ladder49 <[EMAIL PROTECTED]>:
> Is there a way to dump the HTML code for a web page? I need to write
> a script which will collect and summarize content from intranet web
> pages. By dump, I mean to read it the same way you would read a file
> and parse its contents. Thanks.
>
You can use lwp to do this.like,
perl -MLWP::Simple -e '$c=get("http://www.yahoo.cn/");print $c'
see also `perldoc lwpcook`.
--
Jeff Pang - [EMAIL PROTECTED]
http://www.readwriteweb.com/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/