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

[cobalt-developers] Re: cobalt-developers digest, Vol 1 #411 - 8 msgs



>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';