> Ok first of all, if you are working with numbers you use < == <= >= !and
> since you want to check the length of the password, you are
> working with numbers.
> Another thing, you must get the lenght of the string, using length();
>
> So you need to do it this way:
> if(length($newpasswd)<6) {
> # do something if the password is less then 6 characters
>  }
>
> Hope it helped ;)
>

Ah, what an idiot!! I should have just searched my Perl CD Bookshelf for
the "length keyword"

Thanks.


-- 
Walking the road to enlightenment... I found a penguin and a camel on the
way..... Fancy a [EMAIL PROTECTED] Just ask!!!
http://aberdeen.pm.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to