No it makes no difference.
In order to have the form submit data to a script, you must set the action attribute of the form to point to that script's file.
<form id="" name="" method="POST" action="script_folder/script_name.pl">
<input type="text" name="my-data" value="test />
</form>
This example will send the information from that textbox to a perl script called script_name.pl via POST. Alternatively you can send the data via method GET, depending on how your perl script was made to accept data.