http://qs321.pair.com?node_id=1084787

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:
if($myvar=~/X+/) { print "ERROR\n"; }
it works but in that case, as you know, $myvar can contain other letters...