Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Seek help posting to www-form-urlencoded . . .

by moritz (Cardinal)
on Sep 17, 2009 at 07:08 UTC ( [id://795801]=note: print w/replies, xml ) Need Help??


in reply to Seek help posting to www-form-urlencoded . . .

The warnings point to the right direction.

my $request = ( # POST => $url, action => 'Count', name => 'datafile', Content_Type => 'multipart/form-data', Content => [ 'file' => [ $ballot_file ]] );

You put a list (...) in scalar context, which means that $request will get only the last item of that list.

If mechanize expect an array reference, you have to write [...] around it, if it expects a hash reference it's {...}.

Perl 6 - links to (nearly) everything that is Perl 6.

Log In?
Username:
Password:

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

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

    No recent polls found