Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
That is impossible.
1. The html is broken (no form tags), which is why there is no default form, to be set as default, or for you to select (via $mech->form_name or $mech->form_number), and why $mech->click doesn't work. This is a bug in WWW::Mechanize, it should throw a useful error messages, example
use WWW::Mechanize; $ua=WWW::Mechanize->new; $ua->get('');#got a form warn $ua->forms; warn $ua->submit; $ua->get('');#no forms here warn $ua->forms; warn $ua->submit; #dies here __END__ HTML::Form=HASH(0x1d76ca0) at - line 6. HTTP::Response=HASH(0x1d77114) at - line 7. Warning: something's wrong at - line 9. Can't call method "make_request" on an undefined value at D:/Perl/site +/lib/WWW/ line 1641.
2. Clicking the button calls javascript, which is not supported (see WWW::Mechanize::FAQ). Besides, the javascript only redirects to rebootinfo.cgi (and it does that with eval -- whoever wrote this should be shot).

In reply to Re^3: Can't call method "click" on an undefined value by Anonymous Monk
in thread Can't call method "click" on an undefined value by neoanantha

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2021-10-27 01:31 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (91 votes). Check out past polls.