Kent Fredric > Package-Strictures > Package::Strictures::Registry

Download:
Package-Strictures-0.01001319.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.01001319   Source   Latest Release: Package-Strictures-1.000000

NAME ^

Package::Strictures::Registry - Data Storage name-space for stricture parameters.

VERSION ^

version 0.01001319

METHODS ^

advertise_value

  Package::Strictures::Registry->advertise_value( 'Some::Package', "STRICT");

An informational data-storage for developers to see what packages that are loaded have strictures that are able to be tuned, without having to grok the source.

Note that by the time you see this value, it is already too late to try setting it.

has_value

  Package::Strictures::Registry->has_value( 'Some::Package', 'STRICT' )

Sees if somebody ( A developer ) has defined an override value for the stricture.

This will be picked up by a performing package when somebody first use/require's it.

get_value

  Package::Strictures::Registry->get_value('Some::Package' , 'STRICT' )

Returns the value stored earlier if there was one.

This is done internally by Package::Strictures::Register to populate the values for the compile-time constants.

set_value

  Package::Strictures::Registry->set_value('Some::Package', 'STRICT' , 1 );

Sets a default value override for Some::Package to pick up when it compiles.

Note: This MUST be performed prior to compile-time, or it won't affect the module AT ALL

AUTHOR ^

Kent Fredric <kentnl@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Kent Fredric.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: