Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

moosex::types::perl(3pm) [debian man page]

MooseX::Types::Perl(3pm)				User Contributed Perl Documentation				  MooseX::Types::Perl(3pm)

NAME
MooseX::Types::Perl - Moose types that check against Perl syntax VERSION
version 0.101341 SYNOPSIS
use MooseX::Types::Perl qw( DistName ModuleName PackageName Identifier SafeIdentifier LaxVersionStr StrictVersionStr VersionObject ); DESCRIPTION
This library provides Moose types for checking things (mostly strings) against syntax that is, or is a reasonable subset of, Perl syntax. TYPES
ModuleName PackageName These types are identical, and expect a string that could be a package or module name. That's basically a bunch of identifiers stuck together with double-colons. One key quirk is that parts of the package name after the first may begin with digits. The use of an apostrophe as a package separator is not permitted. DistName The DistName type checks for a string like "MooseX-Types-Perl", the sort of thing used to name CPAN distributions. In general, it's like the more familiar ModuleName, but with hyphens instead of double-colons. In reality, a few distribution names may not match this pattern -- most famously, "CGI.pm" is the name of the distribution that contains CGI. These exceptions are few and far between, and deciding what a "LaxDistName" type would look like has not seemed worth it, yet. Identifier An Identifier is something that could be used as a variable name. Generally, it's a bunch of alphanumeric characters not starting with a digit. Although Perl identifiers may contain non-ASCII characters in some circumstances, this type does not allow it. A "UnicodeIdentifier" type may be added in the future. SafeIdentifier SafeIdentifiers are just like Identifiers, but omit the single-letter variables underscore, a, and b, as these have special significance. LaxVersionStr StrictVersionStr Lax and strict version strings use the is_lax and is_strict methods from "version" to check if the given string would be a valid lax or strict version. version::Internals covers the details but basically: lax versions are everything you may do, and strict omit many of the usages best avoided. VersionObject Just for good measure, this type is included to check if a value is a version object. Coercions from LaxVersionStr (and thus StrictVersionStr) are provided. AUTHOR
Ricardo SIGNES <rjbs@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2011-12-23 MooseX::Types::Perl(3pm)

Check Out this Related Man Page

MooseX::Types::Base(3)					User Contributed Perl Documentation				    MooseX::Types::Base(3)

NAME
MooseX::Types::Base - Type library base class VERSION
version 0.35 DESCRIPTION
You normally won't need to interact with this class by yourself. It is merely a collection of functionality that type libraries need to interact with moose and the rest of the MooseX::Types module. METHODS
import Provides the import mechanism for your library. See "LIBRARY USAGE" in MooseX::Types for syntax details on this. get_type This returns a type from the library's store by its name. type_names Returns a list of all known types by their name. add_type Adds a new type to the library. has_type Returns true or false depending on if this library knows a type by that name. type_storage Returns the library's type storage hash reference. You shouldn't use this method directly unless you know what you are doing. It is not an internal method because overriding it makes virtual libraries very easy. registered_class_types Returns the class types registered within this library. Don't use directly. register_class_type Register a "class_type" for use in this library by class name. get_registered_class_type Get a "class_type" registered in this library by name. registered_role_types Returns the role types registered within this library. Don't use directly. register_role_type Register a "role_type" for use in this library by role name. get_registered_role_type Get a "role_type" registered in this library by role name. SEE ALSO
MooseX::Types::Moose LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as perl itself. AUTHOR
Robert "phaylon" Sedlacek <rs@474.at> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Robert "phaylon" Sedlacek. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.16.2 2012-05-18 MooseX::Types::Base(3)
Man Page