Help for this page

Select Code to Download


  1. or download this
    $mech->submit_form(   # invoke the submit_form() object method.
      $form_string => $d, # Anything to the left of a 
    ...
          # you created it with one key (the contents of $param_string)
          # and no associated value.  So you get an error message.
    );
    
  2. or download this
    $mech->submit_form(
      $form_string, $d,
    ...
        split( /=>\s+|,\s+/, $param_string ) 
      }
    );