Is the CGI part necessary to check the password validation?
Please change your code for debugging and remove all the CGI parts. This allows you to easily see the warnings that Perl throws. These warnings will point you o this line:
if ($password != /^[\w\d@#\$%`~!^&*()_\-+={}[\]|\\'";:\/?.><,]{8}$/ )
The binding operator for regular expression matches is ~, not =. So you most likely want !~ there, instead of !=.
In reply to Re: validations in perl
by Corion
in thread validations in perl
by Ekanvitha9
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |