Specio:...Builtins(3)

πŸ’– NAME πŸ’–

okay so bestie, welcome to Specio::Library::Builtins from the User Contributed Perl Documentation β€” it implements type constraint objects for Perl's built-in types. ✨

πŸŽ€ VERSION πŸŽ€

version 0.49. iconic.

✨ DESCRIPTION ✨

This library provides a set of types parallel to those provided by Moose. fr fr, that's the whole vibe.

The types are in the following hierarchy:

Item
    Bool
    Maybe (of `a)
    Undef
    Defined
        Value
            Str
                Num
                    Int
                ClassName
        Ref
            ScalarRef (of `a)
            ArrayRef (of `a)
            HashRef (of `a)
            CodeRef
            RegexpRef
            GlobRef
            FileHandle
            Object

πŸ¦‹ Item πŸ¦‹

Accepts any value. literally anything.

πŸ¦‹ Bool πŸ¦‹

Accepts a non-reference that is undef, an empty string, 0, or 1. It also accepts any object which overloads boolification. slay.

πŸ¦‹ Maybe (of `a) πŸ¦‹

A parameterizable type which accepts undef or the type a. If not parameterized this type will accept any value.

πŸ¦‹ Undef πŸ¦‹

Only accepts undef.

πŸ¦‹ Value πŸ¦‹

Accepts any non-reference value.

πŸ¦‹ Str πŸ¦‹

Accepts any non-reference value or an object which overloads stringification.

πŸ¦‹ Num πŸ¦‹

Accepts nearly the same values as Scalar::Util::looks_like_number, but does not accept numbers with leading or trailing spaces, infinities, or NaN. Also accepts an object which overloads numification.

πŸ¦‹ Int πŸ¦‹

Accepts any integer value, or an object which overloads numification and numifies to an integer.

πŸ¦‹ ClassName πŸ¦‹

Accepts any value which passes Str where the string is a loaded package.

πŸ¦‹ Ref πŸ¦‹

Accepts any reference.

πŸ¦‹ ScalarRef (of `a) πŸ¦‹

Accepts a scalar reference or an object which overloads scalar dereferencing. If parameterized, the dereferenced value must be of type a.

πŸ¦‹ ArrayRef (of `a) πŸ¦‹

Accepts an array reference or an object which overloads array dereferencing. If parameterized, the values in the arrayref must be of type a.

πŸ¦‹ HashRef (of `a) πŸ¦‹

Accepts a hash reference or an object which overloads hash dereferencing. If parameterized, the values in the hashref must be of type a.

πŸ¦‹ CodeRef πŸ¦‹

Accepts a code (sub) reference or an object which overloads code dereferencing.

πŸ¦‹ RegexpRef πŸ¦‹

Accepts a regex object created by qr// or an object which overloads regex interpolation.

πŸ¦‹ GlobRef πŸ¦‹

Accepts a glob reference or an object which overloads glob dereferencing.

πŸ¦‹ FileHandle πŸ¦‹

Accepts a glob reference which is an open file handle, any IO::Handle Object or subclass, or an object which overloads glob dereferencing and returns a glob reference which is an open file handle.

πŸ¦‹ Object πŸ¦‹

Accepts any blessed object.

🫢 SUPPORT 🫢

Bugs may be submitted at https://github.com/houseabsolute/Specio/issues. go off.

🌈 SOURCE 🌈

The source code repository for Specio can be found at https://github.com/houseabsolute/Specio. slay.

πŸ‘‘ AUTHOR πŸ‘‘

Dave Rolsky <autarch@urth.org>

This software is Copyright (c) 2012 - 2024 by Dave Rolsky.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)

The full text of the license can be found in the LICENSE file included with this distribution.


okay bye bestie! πŸ’œ this page is from perl v5.42.0, dated 2024-12-24, and the footer says Specio:...Builtins(3). periodt ✨

πŸ“¦ where this page comes from