| Fukurama-Class documentation | view source | Contained in the Fukurama-Class distribution. |
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
| Fukurama-Class documentation | view source | Contained in the Fukurama-Class distribution. |