jwisneski2003
09-18-2005, 01:49 PM
hello all,
how can i get this code to ask for the correct input 3 times?
thanks john
print "enter a password";
while (<>) {
chop;
if ($_ ne 'password'){
print "try again";
} else {
print "success you win";
exit;
}
}
how can i get this code to ask for the correct input 3 times?
thanks john
print "enter a password";
while (<>) {
chop;
if ($_ ne 'password'){
print "try again";
} else {
print "success you win";
exit;
}
}