in reply to Getting contents of URL
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 Section
Seekers of Perl Wisdom