Hi,

I just found that a script I wrote before stopped working. The problem is
that the 'get' method returns an undef. So I wrote a test script like:

#!/usr/bin/perl -w
use strict;
use LWP::Simple;
use CGI qw(:standard);

my $content = get qw(http://yahoo.com);

print $content;


When I ran the above scrip on commandline, it worked. But when I ran it
from a browser, it failed and I found a message in the log file saying
that $content is undef. 

Any clue?

Thanks,

jack

        



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to