Update: added loop-age:my $form = $mech->current_form; warn $form->find_input( 'shopwizard' );
my $form; foreach ( $mech->forms ){ if( $_->find_input('shopwizard') ){ $form = $_; last; } } # OR (yet another way; slightly less efficient): my @shopwizardForms = grep { $_->find_input( 'shopwizard' ) } $mech->f +orms; # or just: my ($shopwizardForm) = grep { $_->find_input( 'shopwizard' ) } $mech-> +forms;
In reply to Re: how smart www::mechanize can be?
by davidrw
in thread how smart www::mechanize can be?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |