Don't ask to ask, just ask | |
PerlMonks |
Using $! and passing errorsby Angel (Friar) |
on Nov 15, 2002 at 19:52 UTC ( [id://213253]=perlquestion: print w/replies, xml ) | Need Help?? |
Angel has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to wrote a password validation module that instead of just going GOOD/BAD, allows tracking of number of logins and attempts to prevent beople from hammering, brute force cracking, and other cracking methods.
What I am asking is less of a how do I pass the type of bad login back to the calling script? 1. Have it return a list first element being 1 or 0 for sucessful or uncucessful and second element being the type of error? 2. Have it return the truth value and set $! to the error type. ( I tried this and in the calling script when I tried to print $! it seems that it was not passed back ) 3. Have one element with the type of error or "good login" if sucessful. What do you all think is the best way to do this?
Back to
Seekers of Perl Wisdom
|
|