Regular Expressions must start and finish with a forward slash ("/").
I'm going to point out what I think are 'bad practices'. B., the Perl Best Practices book is wrong)) In the end, I'm going to make some recommendations that I hope people will follow for their own sake and the sake of others who work with their code.
If the interpolated values of the first two arguments match, the test succeeds.
An an example, consider the following two tests: ok('good','good', 'its all good'); # this test passes because the first two # arguments return the same values.
In the head portion of your HTML, you should create a script to do the form validation: See the validation script in action.
Page 4: Use a Perl CGI script to validate your HTML forms.