[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] Re: cobalt-developers digest, Vol 1 #411 - 8 msgs
- Subject: [cobalt-developers] Re: cobalt-developers digest, Vol 1 #411 - 8 msgs
- From: cLive hoLLoway <clive@xxxxxxxxxxxxxxxxxxx>
- Date: Sat Dec 9 14:40:01 2000
- Organization: JPI
- List-id: Mailing list for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
>Herb Rubin schrieb:
>>
>> I have a Perl cgi program that wont do this:
>>
>> $html = `lynx -source www.yahoo.com`;
>
>
>why calling an external program ? open a socket, print the http
>header(s) to it, in this case a GET request and read the output into an
>array or a string.
Errr, even easier, use the libwww package.
use LWP::Simple;
my $content = get('http://www.yahoo.com');
cLive ;-)
--
E-commerce developer - Perl dude etc...
JP Interactive / Get Trolleyed http://www.get-trolleyed.co.uk
print pack 'H56', '4a75737420616e6f7468657220636f72706f726174652077686f7265';