Don't ask to ask, just ask | |
PerlMonks |
Re: Moose Attribute constraint: Regex OR undefby Corion (Patriarch) |
on Oct 31, 2016 at 12:19 UTC ( [id://1175013]=note: print w/replies, xml ) | Need Help?? |
Can you show us a short program that shows the intended usage of your class? Also, what errors do you currently get (or not)? I assume that where takes a subroutine reference which gets the thing to test in $_, so maybe the following already is enough?
Update: Negated the expression, thanks to 1nickt
In Section
Seekers of Perl Wisdom
|
|