# get all text or textarea controls called "customer" my @customer_text_inputs = $mech->find_all_inputs( { type_regex => qr/^(text|textarea)$/, name => 'customer', } );