in reply to validations in perl
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 !=.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: validations in perl
by Ekanvitha9 (Novice) on Jul 17, 2019 at 10:52 UTC | |
by Corion (Patriarch) on Jul 17, 2019 at 11:00 UTC |