Posted on 2008-06-18 04:12:16-07 by tritonbash
How to assign value to VARIABLES
What is the syntax for assigning values to variables. For example if I want to limit the new password to at least 8 characters, should I do: $MINLEN = 8; #anywhere in the script body. or declare:
my $var = new Data::Password; $var->MINLEN = 8;
Thanks
Direct Responses: 12503 | Write a response
Posted on 2010-03-04 17:47:56.297443-08 by razinf in response to 8097
Re: How to assign value to VARIABLES
Data::Password in not using object oriented interface. The variables are accessible to your script as they are "exported". Set them before calling IsBadPassword.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.