You said that you were new to Perl, but I am not sure whether you are also new to programming. If yes, one advise: always checking return code from function calls like I did below:
use LWP::UserAgent; use warnings; use strict; my $ua = LWP::UserAgent->new(); my $res = $ua->get('http://www.perlmonks.org/'); if ($res->is_success()) { print $res->content(); } else { print "Failed, " . $res->status_line() . "\n";; }
In reply to Re: Get Web Page
by pg
in thread Get Web Page
by kanish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |