10 Mar 2017 14:24:51 UTC
- Distribution: Package-Strictures
- Module version: 1.000001
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Issues (0)
- Testers (576 / 0 / 0)
- KwaliteeBus factor: 0
- 81.47% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity24 month
- Download (29.23KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionKENTNL Kent Fredric (PAUSE Custodial Account)
Why not adopt me?This distribution is up for adoption! If you're interested then please contact the PAUSE module admins via email.
Package::Strictures::Registry - Data Storage name-space for stricture parameters.
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.
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.
Package::Strictures::Registry->get_value('Some::Package' , 'STRICT' )
Returns the value stored earlier if there was one.
This is done internally by
Package::Strictures::Registerto populate the values for the compile-time constants.
Package::Strictures::Registry->set_value('Some::Package', 'STRICT' , 1 );
Sets a default value override for
Some::Packageto pick up when it compiles.
Note: This MUST be performed prior to compile-time, or it won't affect the module AT ALL
Kent Fredric <email@example.com>
This software is copyright (c) 2017 by Kent Fredric <firstname.lastname@example.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Package::Strictures, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Package::Strictures
For more information on module installation, please visit the detailed CPAN module installation guide.