my @find_text = $mech->find_all_inputs( type => 'text' ); for $boxes (@find_text) { print $boxes->gettext; }