Help for this page

Select Code to Download


  1. or download this
    my @conf_enum_values = @{ Moose::Util::TypeConstraints::find_type_cons
    +traint('conf')->values };
    
  2. or download this
    use Types::Standard -types;
    
    ...
    my $FileName = StrMatch[qr/^(\w+)\.(\d+)\.txt$/, Tuple[$Conf, $Version
    +]];
    
    has filename => (is => 'rw', isa => $FileName);