Here's, the thing, I have an INI file that looks like this:
Login
username=admin
password=12345
I am using Config::Abstract::Ini to read this section
like this:
my %Login = $ini_db->get_entry('Login');
where %Login is a hash that holds those sub keys and their
values.
Now, in the WWW::Mechanize module, I can use these (below)
functions to insert fields to the page, either by using
the hash (%field_values) method or using the @criteria.
$mech->set_fields( %field_values );
$mech->set_visible( @criteria );
Question is, if I can do it like this:
$mech->set_fields( %Login );
And it will send the pair key and it's value as defined
in the ini file (?)
Moreover, I know what is a hash and how it looks like,
whats a @criteria? how does it look like?
Thanks.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.