in reply to Puzzling warning "Use of unitialized value" in very simple code
I ran the following code against this subroutine:
and got the following result:foreach ('test_NO PASSWORD', 'test_PASSWORD', 'test_test', 'test', 'te +st_abc???????def') { print "$_: ", getPasswordStatus(split /_/), "\n"; }
<p So if I understand this password-policy it is:test_NO PASSWORD: empty test_PASSWORD: password test_test: login test: ok test_abc???????def: ok test_A gOoD PASsword: weak
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Puzzling warning "Use of unitialized value" in very simple code
by Anonymous Monk on Aug 05, 2008 at 09:45 UTC |