# set the second foo field $mech->set_fields( $name => [ 'foo', 2 ] );