in reply to do-while loop question
} while( ($make_account ne 'y') && ($make_account ne 'Y') );
Now, it's not possible for something to be the same as 'y' and as 'Y' at the same time. Thus, always at least one of the subconditions will be true.
Alternatively, using De Morgan's equivalences, you could replace the last line with
} until ( ($make_account eq 'y') || ($make_account eq 'Y') );
|
|---|