aartist has asked for the wisdom of the Perl Monks concerning the following question:
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');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Moose: Include Enum in Regex
by tobyink (Canon) on Jan 30, 2019 at 10:52 UTC |