{
    "mode": "perldoc",
    "parameter": "Specio::Library::Builtins",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Specio%3A%3ALibrary%3A%3ABuiltins/json",
    "generated": "2026-06-10T16:29:23Z",
    "sections": {
        "NAME": {
            "content": "Specio::Library::Builtins - Implements type constraint objects for Perl's built-in types\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 0.47\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This library provides a set of types parallel to those provided by Moose.\n\nThe types are in the following hierarchy\n\nItem\nBool\nMaybe (of `a)\nUndef\nDefined\nValue\nStr\nNum\nInt\nClassName\nRef\nScalarRef (of `a)\nArrayRef (of `a)\nHashRef (of `a)\nCodeRef\nRegexpRef\nGlobRef\nFileHandle\nObject\n",
            "subsections": [
                {
                    "name": "Item",
                    "content": "Accepts any value\n"
                },
                {
                    "name": "Bool",
                    "content": "Accepts a non-reference that is \"undef\", an empty string, 0, or 1. It also accepts any object\nwhich overloads boolification.\n\nMaybe (of `a)\nA parameterizable type which accepts \"undef\" or the type \"`a\". If not parameterized this type\nwill accept any value.\n"
                },
                {
                    "name": "Undef",
                    "content": "Only accepts \"undef\".\n"
                },
                {
                    "name": "Value",
                    "content": "Accepts any non-reference value.\n"
                },
                {
                    "name": "Str",
                    "content": "Accepts any non-reference value or an object which overloads stringification.\n"
                },
                {
                    "name": "Num",
                    "content": "Accepts nearly the same values as \"Scalar::Util::lookslikenumber\", but does not accept numbers\nwith leading or trailing spaces, infinities, or NaN. Also accepts an object which overloads\nnumification.\n"
                },
                {
                    "name": "Int",
                    "content": "Accepts any integer value, or an object which overloads numification and numifies to an integer.\n"
                },
                {
                    "name": "ClassName",
                    "content": "Accepts any value which passes \"Str\" where the string is a loaded package.\n"
                },
                {
                    "name": "Ref",
                    "content": "Accepts any reference.\n\nScalarRef (of `a)\nAccepts a scalar reference or an object which overloads scalar dereferencing. If parameterized,\nthe dereferenced value must be of type \"`a\".\n\nArrayRef (of `a)\nAccepts a array reference or an object which overloads array dereferencing. If parameterized,\nthe values in the arrayref must be of type \"`a\".\n\nHashRef (of `a)\nAccepts a hash reference or an object which overloads hash dereferencing. If parameterized, the\nvalues in the hashref must be of type \"`a\".\n"
                },
                {
                    "name": "CodeRef",
                    "content": "Accepts a code (sub) reference or an object which overloads code dereferencing.\n"
                },
                {
                    "name": "RegexpRef",
                    "content": "Accepts a regex object created by \"qr//\" or an object which overloads regex interpolation.\n"
                },
                {
                    "name": "GlobRef",
                    "content": "Accepts a glob reference or an object which overloads glob dereferencing.\n"
                },
                {
                    "name": "FileHandle",
                    "content": "Accepts a glob reference which is an open file handle, any \"IO::Handle\" Object or subclass, or\nan object which overloads glob dereferencing and returns a glob reference which is an open file\nhandle.\n"
                },
                {
                    "name": "Object",
                    "content": "Accepts any blessed object.\n"
                }
            ]
        },
        "SUPPORT": {
            "content": "Bugs may be submitted at <https://github.com/houseabsolute/Specio/issues>.\n\nI am also usually active on IRC as 'autarch' on \"irc://irc.perl.org\".\n",
            "subsections": []
        },
        "SOURCE": {
            "content": "The source code repository for Specio can be found at <https://github.com/houseabsolute/Specio>.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Dave Rolsky <autarch@urth.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is Copyright (c) 2012 - 2021 by Dave Rolsky.\n\nThis is free software, licensed under:\n\nThe Artistic License 2.0 (GPL Compatible)\n\nThe full text of the license can be found in the LICENSE file included with this distribution.\n",
            "subsections": []
        }
    },
    "summary": "Specio::Library::Builtins - Implements type constraint objects for Perl's built-in types",
    "flags": [],
    "examples": [],
    "see_also": []
}