Fukurama::Class::Rigid - Pragma to set strict and warnings pragma and check classnames
Version 0.02 (beta)
package MyClass; use Fukurama::Class::Rigid;
This pragma-like module provides set the strict and warnings pragma in the caller module. It will also check the class- and filename of the package and croak at compiletime, if they are inconsistent.
You can disable the class- and filename check by setting. You have to do this at compiletime BEFORE any use Fukurama::Class::Rigid; is executed.
$Fukurama::Class::Rigid::PACKAGE_NAHE_CHECK = 0;
You even can disable warnings by saying:
$Fukurama::Class::Rigid::DISABLE = 1;
to speed up your code (Warnings are even executed at runtime).
nothing, bit the behavior of the strict and warnings pragmas.
export warning() and strict() behavior to the caller and check the package name of callers class. With the import_depht parameter you can define for which caller, the first, second etc, this behavior should be exported.
ATTENTION! This method can only be called inside of an import() method at compiletime. Otherwise warnings() and strict() would not work.
see perldoc of Fukurama::Class
To install Fukurama::Class, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Fukurama::Class
CPAN shell
perl -MCPAN -e shell install Fukurama::Class
For more information on module installation, please visit the detailed CPAN module installation guide.