Syntactic Confectionery Delight | |
PerlMonks |
Re: Re: do until loopsby Anonymous Monk |
on Sep 09, 2003 at 23:09 UTC ( [id://290219]=note: print w/replies, xml ) | Need Help?? |
You can have a certain number of tries based on the number of values in the database:
$dbnumber=66; #This would be the number of usernames.
$value=1;
do{
#Your input line would go here, obviously not print value.
$value=$value+1;
} until($value==$dbnum); #This makes it stop after checking the last value in the database.
In Section
Tutorials
|
|