There is no need to modify or open the Perl script. FirstClass Web2Form will create and verify the script based on the contents of your template. Below is a the perl script created by the sample template.
The completed Perl Script.
This section initializes the CGI and specifies that we will use both of the modules that we installed in our Perl site library. This will be required for all of your perl scripts. Note that we have commented out the first line as our AddHandler script manages the location of our Perl libraries.
This section assigns the received message value fields from the form submission to the corresponding variables,
This section assigns the received optional field vales from the form submission to the corresponding variables.
If any date fields are in the template, each one is converted to the FirstClass date format and assigned to a new variable. The script uses the Time::Local perl module.
If there are any checkbox fields with a submission value of "on" it is converted to the value '1'
All text area fields are converted and changes all line feeds to a "->" character.
The mandatory message field headers are initialized.
The Form and Icon ID numbers are added to the message header.
The optional fields are added to the message header.
The email is sent using the Mail::Sendmail perl module.
After the message has been sent, a javascript is run alerting the user that the submission has been received. The text used in the alert is specified in the Confirmation message field in the Web2Form template. The user is then redirected to the location specified in the Redirect to: field.