![]() |
|
P is for Practical | |
PerlMonks |
Re^2: Check if a variable contains only one letter?by tobyink (Canon) |
on May 02, 2014 at 22:59 UTC ( #1084856=note: print w/replies, xml ) | Need Help?? |
Regarding your update, just use /\AX+\z/.
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|