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


Manual Reference Pages  -  DECLARE::CONSTRAINTS::SIMPLE::LIBRARY::EXPORTABLE (3)

.ds Aq ’

NAME

Declare::Constraints::Simple::Library::Exportable - Export Facilities

CONTENTS

DESCRIPTION

This contains the constraint export logic of the module.

METHODS

import($flag, CW@args)



  use ExportableModule->All;

  # or
  use ExportableModule-Only => qw(Constraint1 ...);

  # or
  use ExportableModule-Library;



Exports the constraints to the calling namespace. This includes all libraries in Declare::Constraints::Simple::Library, that package itself (providing all default constraints) or Declare::Constraints::Simple itself as a shortcut.

Possible flags are
All Imports all constraints registered in the class and its base classes.
Only


  use Declare::Constraints::Simple::Library::Scalar-Only => HasLength;



The above line would only import the HasLength constraints from the Scalar default library. Note however, that you could also just have said



  use Declare::Constraints::Simple-Only => HasLength;



as both ::Simple and ::Simple::Library work on all default libraries.

Library You can use this to define your own constraint library. For more information, see Declare::Constraints::Simple::Library::Base.

_build_handle_map()

Internal method to build constraint-to-class mappings.

_export_all($target, CW$handle_map)

Internal method. Exports all handles in $handle_map into the $target namespace.

_export_these($target, CW$handle_map, CW@constraints)

Internal method. Exports all @constraints from $handle_map into the $target namespace.

SEE ALSO

Declare::Constraints::Simple, Declare::Constraints::Simple::Library, Declare::Constraints::Simple::Library::Base

AUTHOR

Robert ’phaylon’ Sedlacek <phaylon@dunkelheit.at>

LICENSE AND COPYRIGHT

This module is free software, you can redistribute it and/or modify it under the same terms as perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DECLARE::CONSTRAINTS::SIMPLE::LIBRARY::EXPORTABLE (3) 2006-09-14

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