symŽ has asked for the wisdom of the Perl Monks concerning the following question:
Not sure why I can't set the parameters in a hash rather than:use HTTP::Request::Common; $URL='https://site.com/cgi-bin/script.cgi'; %form = ( key1=> 'value1, key2=> 'value2, ); $ua = LWP::UserAgent->new; $ua->timeout(10); $form_ref = { %form }; my $req = HTTP::Request->new(POST => $URL, $form_ref); my $res = $ua->request($req);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hash referencing with LWP
by chipmunk (Parson) on May 03, 2001 at 23:33 UTC |