markmorgan
Programmer
I am a Perl novice and am trying to get the following script to work
The get function appears to do something as it takes time to execute, but the result in $page is <undef> triggering the exit.
I am using the Open Perl IDE and Perl under Windows 2000. Perl is returning "Unknown Error" from the get I think.
If I pass in an invalid URL it returns "Invalid Argument", so its not the url.
Mark.
Code:
#
use strict;
use warnings;
use LWP::Simple qw(get);
my $url = "[URL unfurl="true"]http://www.a-valid-url.html";[/URL]
my $page = get($url);
exit unless $page;
The get function appears to do something as it takes time to execute, but the result in $page is <undef> triggering the exit.
I am using the Open Perl IDE and Perl under Windows 2000. Perl is returning "Unknown Error" from the get I think.
If I pass in an invalid URL it returns "Invalid Argument", so its not the url.
Mark.