You could do away altogether with your 'this or that' conditional by simply using:
do { ... } while lc($make_account) ne 'y';
or
do { ... } while $make_account !~ /^\s*y/i;
... so that if they accidently lean on the space bar it will ignore the spaces (and tabs)...
In reply to Re: do-while loop question
by grinder
in thread do-while loop question
by lacertus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |