good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Check if a variable contains only one letter?by hdb (Monsignor) |
on May 02, 2014 at 14:05 UTC ( [id://1084790]=note: print w/replies, xml ) | Need Help?? |
Use anchors: /^X+$/
In Section
Seekers of Perl Wisdom
|
|