print "Enter sequences for rows: ";
$a = <STDIN>;
chop $a;
print "Enter sequences for cols: ";
$b = <STDIN>;
chop $b;
I want to allow only certain characters (W, X, Y, Z) for the inputs for both of <STDIN>.
If any other characters than W, X, Y, Z are entered, it asks until the correct sets of characters are entered.
Also, the input converts to upper case regardless lower or upper cases entered for the characters (W, X, Y, Z, w, x, y, z).
thx much
$a = <STDIN>;
chop $a;
print "Enter sequences for cols: ";
$b = <STDIN>;
chop $b;
I want to allow only certain characters (W, X, Y, Z) for the inputs for both of <STDIN>.
If any other characters than W, X, Y, Z are entered, it asks until the correct sets of characters are entered.
Also, the input converts to upper case regardless lower or upper cases entered for the characters (W, X, Y, Z, w, x, y, z).
thx much