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;