On Wed, 28 Jan 2004, Luinrandir Hernsen wrote: > IS this how I capture a web page code to a variable? > > > #!/usr/bin/perl > > > > use LWP::UserAgent; > > > > my $req; > > my $ua = LWP::UserAgent->new; > > $req = HTTP::Request->new(GET => 'http://www.yahoo.com'); > > print $req; ## ????????????? > from here I can print at the code for the web page? >
print $req->as_string; #print the html -- Maranatha! John McKown -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>