P
perl
Hello,
when i run my little perl script, Perl crashes (using Win2000+ActiveState
Perl 5.8.8).
I have no idea why.
Here the little script:
---------------------------------
#!/usr/bin/perl -w
use LWP::UserAgent;
use strict;
my $url = "http://www.google.de";
my $ua = LWP::UserAgent->new(); # create virtual browser
$ua->agent("someagent/v 0.1a"); # giving browser a name
my $req = HTTP::Request->new(GET => $url);
my $webpage = $ua->request($req);
if ($webpage->is_success){ print $webpage->content;}
else {print $webpage->status_line, "\n";}
when i run my little perl script, Perl crashes (using Win2000+ActiveState
Perl 5.8.8).
I have no idea why.
Here the little script:
---------------------------------
#!/usr/bin/perl -w
use LWP::UserAgent;
use strict;
my $url = "http://www.google.de";
my $ua = LWP::UserAgent->new(); # create virtual browser
$ua->agent("someagent/v 0.1a"); # giving browser a name
my $req = HTTP::Request->new(GET => $url);
my $webpage = $ua->request($req);
if ($webpage->is_success){ print $webpage->content;}
else {print $webpage->status_line, "\n";}