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

Re: [MacPerl] grab web page



Xah Lee <xah@best.com> writes:
>Can anyone show me how to write the following function in *both* MacPerl and L
inux?
>
># &getWebContent('url') returns a string that is the web content (html text) a
t the specified url. Example: $content getWebContent('http://www.apple.com');

use LWP::Simple;

$content = get('http://www.apple.com');

Matthias

-- 
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
   "One fine day in my odd past..." -- Pixies, _Planet of Sound_

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch