Type constraint error is probably from the default. Your default is a string, not a regexp ref. Just don't set a default at all.
In reply to Re: Moose RegexpRef
by tobyink
in thread Moose RegexpRef
by kdjantzen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |