1Specio::Library::Perl(3U)ser Contributed Perl DocumentatiSopnecio::Library::Perl(3)
2
3
4
6 Specio::Library::Perl - Implements type constraint objects for some
7 common Perl language things
8
10 version 0.48
11
13 This library provides some additional string types for common cases.
14
15 PackageName
16 A valid package name. Unlike the "ClassName" constraint from the
17 Specio::Library::Builtins library, this package does not need to be
18 loaded.
19
20 This type does allow Unicode characters.
21
22 ModuleName
23 Same as "PackageName".
24
25 DistName
26 A valid distribution name like "DBD-Pg" Basically this is the same as a
27 package name with the double-colons replaced by dashes. Note that there
28 are some historical distribution names that don't fit this pattern,
29 like "CGI.pm".
30
31 This type does allow Unicode characters.
32
33 Identifier
34 An Identifier is something that could be used as a symbol name or other
35 identifier (filehandle, directory handle, subroutine name, format name,
36 or label). It's what you put after the sigil (dollar sign, at sign,
37 percent sign) in a variable name. Generally, it's a bunch of word
38 characters not starting with a digit.
39
40 This type does allow Unicode characters.
41
42 SafeIdentifier
43 This is just like an "Identifier" but it excludes the single-character
44 variables underscore ("_"), "a"< and "b", as these are special
45 variables to the Perl interpreter.
46
47 LaxVersionStr and StrictVersionStr
48 Lax and strict version strings use the is_lax and is_strict methods
49 from "version" to check if the given string would be a valid lax or
50 strict version. version::Internals covers the details but basically:
51 lax versions are everything you may do, and strict omit many of the
52 usages best avoided.
53
54 CREDITS
55 Much of the code and docs for this library comes from
56 MooseX::Types::Perl, written by Ricardo SIGNES <rjbs@cpan.org>.
57
59 Bugs may be submitted at
60 <https://github.com/houseabsolute/Specio/issues>.
61
63 The source code repository for Specio can be found at
64 <https://github.com/houseabsolute/Specio>.
65
67 Dave Rolsky <autarch@urth.org>
68
70 This software is Copyright (c) 2012 - 2022 by Dave Rolsky.
71
72 This is free software, licensed under:
73
74 The Artistic License 2.0 (GPL Compatible)
75
76 The full text of the license can be found in the LICENSE file included
77 with this distribution.
78
79
80
81perl v5.38.0 2023-07-21 Specio::Library::Perl(3)