Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: About lwp::useragent

by GotToBTru (Prior)
on Mar 14, 2022 at 19:05 UTC ( [id://11142092]=note: print w/replies, xml ) Need Help??


in reply to About lwp::useragent

Please consult Writeup Formatting Tips and What shortcuts can I use for linking to other information?. A well formatted question is easier to read and easier to answer!

my $form = ( HTML::Form->parse( $res->content, $base ) )1

should be

my $form = ( HTML::Form->parse( $res->content, $base ) )[1];

Without the code tags the index was interpreted as a reference.

But God demonstrates His own love toward us, in that while we were yet sinners, Christ died for us. Romans 5:8 (NASB)

Log In?
Username:
Password:

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

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

    No recent polls found