Types::Namespace(3pm) | User Contributed Perl Documentation | Types::Namespace(3pm) |
Types::Namespace - type constraints for dealing with namespaces
package Namespace::Counter { use Moo; # or Moose use Types::Namespace qw( Namespace ); has ns => ( is => "ro", isa => Namespace, required => 1, ); sub count_uses_in_document { ... } }
Types::Namespace is a type constraint library suitable for use with Moo/Moose attributes, Kavorka sub signatures, and so forth. It builds on Types::URI.
Can coerce from URI, IRI, Path::Tiny, and strings.
Can coerce from a hashref of "prefix => URI" pairs.
See URI::NamespaceMap for further details about authors, license, etc.
2018-11-02 | perl v5.28.0 |