in reply to how smart www::mechanize can be?
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how smart www::mechanize can be?
by Anonymous Monk on Mar 28, 2006 at 19:43 UTC | |
by ikegami (Patriarch) on Mar 28, 2006 at 19:58 UTC |