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>
π COPYRIGHT AND LICENSE π
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
- opensuse-leap 16.0: perl-Specio 0.490.0-160000.2.2 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms