Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://478828]
help
Chatterbox?
[holli]: I really like these guys. Ugly, but hell of a flow.
[holli]: Quite good evidence immigrants can contribute to a countries culture.
LanX ... let me hear your body talk...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2017-12-13 18:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (373 votes). Check out past polls.

    Notices?