Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
is there a way to check if a given variable contains only one letter, e.g. X and not any other letters from A-Z? By doing:
it works but in that case, as you know, $myvar can contain other letters...if($myvar=~/X+/) { print "ERROR\n"; }
Back to
Seekers of Perl Wisdom