Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Getting contents of URL

by gopalr (Priest)
on Jul 28, 2005 at 05:13 UTC ( #478828=note: print w/ replies, xml ) Need Help??


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


Comment on Re: Getting contents of URL
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://478828]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2015-07-07 03:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls