Hi Sathish Kumar,
You are missing this line in your coding
my $ua=LWP::UserAgent->new;
Do change your code like as follow and try again
use LWP::UserAgent; $URL='http://www.perl.com/'; my $ua=LWP::UserAgent->new; $content=$ua->get($URL); use Data::Dumper; print Dumper($content);
Thanks
Gopal.R
In reply to Re: Getting contents of URL
by gopalr
in thread Getting contents of URL
by perl_devel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |