I need to pass cgi->param() to a function that requires declarations like :
[ foo => "bar", foo2 => "bar2" ].
The closest I've gotten was with a reference to
my @params = $cgi->param(), which was referenced as \@params, but this just gave me the keys, not the values. I tried to make @params into a hash but that got nowhere.
I'm a PHP guy trying to add something to a legacy PL script. Help! Thanks. More complete context below:
use HTTP::Request::Common qw(POST);
use LWP::UserAgent;
$ua = LWP::UserAgent->new;
my $req = ( POST ' $cgi->param() );
$res = $ua->request($req);
[ foo => "bar", foo2 => "bar2" ].
The closest I've gotten was with a reference to
my @params = $cgi->param(), which was referenced as \@params, but this just gave me the keys, not the values. I tried to make @params into a hash but that got nowhere.
I'm a PHP guy trying to add something to a legacy PL script. Help! Thanks. More complete context below:
use HTTP::Request::Common qw(POST);
use LWP::UserAgent;
$ua = LWP::UserAgent->new;
my $req = ( POST ' $cgi->param() );
$res = $ua->request($req);