{
    "mode": "perldoc",
    "parameter": "Moose::Meta::TypeConstraint::Enum",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Moose%3A%3AMeta%3A%3ATypeConstraint%3A%3AEnum/json",
    "generated": "2026-06-09T14:30:08Z",
    "sections": {
        "NAME": {
            "content": "Moose::Meta::TypeConstraint::Enum - Type constraint for enumerated values.\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 2.2200\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This class represents type constraints based on an enumerated list of acceptable values.\n",
            "subsections": []
        },
        "INHERITANCE": {
            "content": "\"Moose::Meta::TypeConstraint::Enum\" is a subclass of Moose::Meta::TypeConstraint.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "Moose::Meta::TypeConstraint::Enum->new(%options)\nThis creates a new enum type constraint based on the given %options.\n\nIt takes the same options as its parent, with several exceptions. First, it requires an\nadditional option, \"values\". This should be an array reference containing a list of valid string\nvalues. Second, it automatically sets the parent to the \"Str\" type.\n\nFinally, it ignores any provided \"constraint\" option. The constraint is generated automatically\nbased on the provided \"values\".\n\n$constraint->values\nReturns the array reference of acceptable values provided to the constructor.\n\n$constraint->createchildtype\nThis returns a new Moose::Meta::TypeConstraint object with the type as its parent.\n\nNote that it does *not* return a \"Moose::Meta::TypeConstraint::Enum\" object!\n",
            "subsections": []
        },
        "BUGS": {
            "content": "See \"BUGS\" in Moose for details on reporting bugs.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "*   Stevan Little <stevan@cpan.org>\n\n*   Dave Rolsky <autarch@urth.org>\n\n*   Jesse Luehrs <doy@cpan.org>\n\n*   Shawn M Moore <sartak@cpan.org>\n\n*   יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>\n\n*   Karen Etheridge <ether@cpan.org>\n\n*   Florian Ragwitz <rafl@debian.org>\n\n*   Hans Dieter Pearcey <hdp@cpan.org>\n\n*   Chris Prather <chris@prather.org>\n\n*   Matt S Trout <mstrout@cpan.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is copyright (c) 2006 by Infinity Interactive, Inc.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n",
            "subsections": []
        }
    },
    "summary": "Moose::Meta::TypeConstraint::Enum - Type constraint for enumerated values.",
    "flags": [],
    "examples": [],
    "see_also": []
}