In the case of user input, a regex is generally better.
if ($choice ~= /^y(es)?|^no?/i) for example, with case insensitivity and verbose insensitivity.In reply to Re^2: Continure when "y" and none for "n"
by Anonymous Monk
in thread Continure when "y" and none for "n"
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |