Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Is this a bug in mechanize::select(), or am I just confused? (or something else) (answer: bad html)

by rustycar (Novice)
on Jul 31, 2008 at 01:47 UTC ( #701312=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $ans = 1; # or whatever.
    while ($ans)
    ...
    $inputobj = $mech->current_form()->find_input( 'accept', 'submit');
    die 'argh! Cannot find Accept button on the iSCSI Access page!' unless
    + $inputobj;
    $ans = $mech->click_button( input => $inputobj );
    
  2. or download this
    <td>
    <input type="hidden" name="serverList" value="">
    ...
    
    </select>
    </td>
    
  3. or download this
    
    while ($ans)
    ...
    $inputobj = $mech->current_form()->find_input( 'accept', 'submit');
    die 'argh! Cannot find Accept button on the iSCSI Access page!' unless
    + $inputobj;
    $ans = $mech->click_button( input => $inputobj );
    
  4. or download this
            for (@{$self->{menu}}) {
                if ((defined($val) && defined($_->{value}) && $val eq $_->
    +{value}) ||
    ...
                }
                $i++;
            }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://701312]
Approved by kyle
help
Chatterbox?
[Tanktalus]: Lady_Aleena: yeah, I can reproduce your issue, it's confusing alright :)
[Tanktalus]: I'm sure it'll make perfect sense once we figure it out :)
[Lady_Aleena]: marioroy, not a quoting error. I can't run it on the command line. It is when I put it in qx() where it falls apart.
Discipulus hired to use Perl in Eataly? haired maybe
[choroba]: We're hiring
[Discipulus]: wow praha!
[Tanktalus]: choroba: do I have to move? :)
Discipulus has too much roots in a 2770 yo town
[marioroy]: I want a job after completing MCE in about a week. But feel that I've moved to the wrong place.
[choroba]: I fear so. We have offices in Prague, Brno, Saigon and San Francisco.

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2017-04-23 20:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.