Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: www::mechanize matchup.io form and clicking

by choroba (Cardinal)
on Apr 19, 2015 at 11:21 UTC ( [id://1123951]=note: print w/replies, xml ) Need Help??


in reply to Re^2: www::mechanize matchup.io form and clicking
in thread www::mechanize matchup.io form and clicking

I'm not sure it solves your problem, but to create a hash with the keys specified in Perl, you have to quote the keys, as they aren't simple barewords:
fields => { 'user[email]' => $login, 'user[password]' => $pas +sword },

See perlop for details:

The => operator is a synonym for the comma except that it causes a word on its left to be interpreted as a string if it begins with a letter or underscore and is composed only of letters, digits and underscores.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-24 20:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found