Hi all,
I am trying to store a Win32::IE::Mechanize object and then use it later, but I am not able to do so. I don't know what the problem is.. I tried dumping the Win32::IE::Mechanize Object using Data::Dumper, but I find that almost all the data is undef or null.. Please suggest me as to how to save the Win32::IE::Mechanize object and use it later..
use Win32::IE::Mechanize;
use Data::Dumper;
$ie = Win32::IE::Mechanize->new(visibile=>1);
$ie->get('http://google.com');
sleep(4);
print Dumper($ie);
This gives an output like
$VAR1 = bless( {
'quiet' => undef,
'images' => undef,
'headers' => {},
'_opt' => {
'visible' => 1
},
'forms' => undef,
'onwarn' => undef,
'onerror' => undef,
'agent' => bless( {}, 'Win32::OLE' ),
'cur_form' => undef,
'links' => undef,
'basic_authentication' => {}
}, 'Win32::IE::Mechanize' );
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.