{
    "mode": "perldoc",
    "parameter": "Moose::Meta::TypeCoercion::Union",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Moose%3A%3AMeta%3A%3ATypeCoercion%3A%3AUnion/json",
    "generated": "2026-06-09T13:26:33Z",
    "sections": {
        "NAME": {
            "content": "Moose::Meta::TypeCoercion::Union - The Moose Type Coercion metaclass for Unions\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 2.2200\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a subclass of Moose::Meta::TypeCoercion that is used for\nMoose::Meta::TypeConstraint::Union objects.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "$coercion->hascoercionfortype\nThis method always returns false.\n\n$coercion->addtypecoercions\nThis method always throws an error. You cannot add coercions to a union type coercion.\n\n$coercion->coerce($value)\nThis method will coerce by trying the coercions for each type in the union.\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::TypeCoercion::Union - The Moose Type Coercion metaclass for Unions",
    "flags": [],
    "examples": [],
    "see_also": []
}