Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Getting contents of URL

by gopalr (Priest)
on Jul 28, 2005 at 05:13 UTC ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-24 18:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found