Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: LWP post method, mutliple parameters

by davidov0009 (Scribe)
on Dec 23, 2007 at 04:53 UTC ( [id://658740]=note: print w/replies, xml ) Need Help??


in reply to Re^2: LWP post method, mutliple parameters
in thread LWP post method, mutliple parameters

What was in place before was
$ua->post( $url, [ name => value, name => value ], @header)
Would it be the same to replace the [ name => value...] with a hashref?

use strict; use CGI;

Replies are listed 'Best First'.
Re^4: LWP post method, mutliple parameters
by merlyn (Sage) on Dec 23, 2007 at 11:37 UTC
    I believe it accepts either an arrayref or a hashref there. You should be using an array ref though, or you won't be able to have multiple values for a given param. That's why it accepts an arrayref there.
      This code confused me in the post() method.
      [ name => value, name2 => value ]
      Is that an arrayref with hash values?

      use strict; use CGI;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-20 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found