"be consistent" | |
PerlMonks |
Moose Attribute constraint: Regex OR undefby hoppfrosch (Scribe) |
on Oct 31, 2016 at 12:11 UTC ( [id://1175012]=perlquestion: print w/replies, xml ) | Need Help?? |
hoppfrosch has asked for the wisdom of the Perl Monks concerning the following question: Hi I want to use Moose type constraints for an attribute which could either be undefined or - if the attribute is provided on new() - match a given RegEx. What I currently have is:
I cannot figure out, where to put the undef to - or I have an incorrect syntax. Any hint welcome ...
Back to
Seekers of Perl Wisdom
|
|