GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Types::Namespace(3) User Contributed Perl Documentation Types::Namespace(3)

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.

"Namespace"
A class type for URI::Namespace.

Can coerce from URI, IRI, Path::Tiny, Attean::IRI, RDF::Trine::Namespace, RDF::Trine::Node::Resource and strings.

"NamespaceMap"
A class type for URI::NamespaceMap.

Can coerce from a hashref of "prefix => URI" pairs and from RDF::Trine::NamespaceMap.

"Uri", "Iri"
These namespaces are re-exported from Types::URI, but with an additional coercion from the "Namespace" type.

See URI::NamespaceMap for further details about authors, license, etc.

2024-01-11 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.