Rob Dixon wrote:
John W. Krahn wrote:
Meir Yanovich wrote:
in new to perl .
i know how to pass simple variables to perl subs
but now i like to pass HTTP::Response variable to sub
and im getting errors here is my example :
my $browser = LWP::UserAgent->new();
my $response = $browser->get($url);
$response now contains the data from the web site at $url. It is *NOT*
an object but an HTML page.
It is true that the get function from LWP::Simple returns the URL content, but
the get method from a full-blown LWP::UserAgent object returns an HTTP::Response
object, with the content in $response->content.
Yes, sorry, I was thinking of LWP::Simple.
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/