[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] get urls



On Mon, Apr 12, 1999 at 07:28:53PM -0500, Rick wrote:
} is there a way to have netscape or any web browser grab a web site from
} the net and either send it to macperl or save it as source?  if i can
} send it to macperl, how would i read it line by line?  like this?:

Don't use a browser, use MacPerl:

use LWP::Simple;

getstore ($url,$file) or die;
open(URL,"<$file") or die;

 
 while(<URL>) {
  if($_ =~ /stuff here/) {
     do something;
   }
 }


} 
} any help would be appreciated.  thanx.
} 
} 

-- 
Paul Schinder
schinder@pobox.com

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org