I like to replace the values in where clause by specifying the enum names. How I can do that?enum conf => [qw /access input/]; enum version => [qw /1 2/]; and I like to have subtype 'FileName', as 'Str', where { /(access|input).(1|2).txt/ }; and then has filename => (is => 'rw', isa=> 'FileName');
In reply to Moose: Include Enum in Regex by aartist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |