Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 chanting in the Monastery: (7)
As of 2014-12-18 02:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls