Home  |  Linux  | Mysql  | PHP  | XML
From:Richard Lee Date:Wed May 14 10:05:10 2008
Subject:perl and web
Hi guys again!

I am sure this questions been around for while but I am not sure where 
to begin.

I am trying to grep a html page given a URL and then extract some 
information from the source code.
So something like

open FH, "www.example.com/index.html | " , or die "no way : $!\n";
@array = <FH>;

my $code;
while (@array) {
        next if /bleh/;
        if ( /^From: (.*)/ ) {
            $code = $1;
        }
}

You get the idea.. so anyway I did the search
on google

'how to grep a web page source using perl'   -- no luck
web perl modules   ---> reading    
http://www.perl.com/pub/a/2002/08/20/perlandlwp.html

I guess the reason I wrote this out is to see if anyone else begining 
perl webpage can use my search or perhaps someone can tell me I am doing 
something stupid
as perl and web seems to be pretty common operation but this is only way 
I know how to at this point.

anyway, just sharing on this... and also look for feedback
Navigate in group perl.beginners at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants