Fukurama::Class::Rigid - Pragma to set strict and warnings pragma and check classnames


Fukurama-Class documentation  | view source Contained in the Fukurama-Class distribution.

Index


NAME

Top

Fukurama::Class::Rigid - Pragma to set strict and warnings pragma and check classnames

VERSION

Top

Version 0.02 (beta)

SYNOPSIS

Top

 package MyClass;
 use Fukurama::Class::Rigid;

DESCRIPTION

Top

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.

CONFIG

Top

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).

EXPORT

Top

nothing, bit the behavior of the strict and warnings pragmas.

METHODS

Top

rigid( import_depth:INT ) return:VOID

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.

AUTHOR, BUGS, SUPPORT, ACKNOWLEDGEMENTS, COPYRIGHT & LICENSE

Top

see perldoc of Fukurama::Class


Fukurama-Class documentation  | view source Contained in the Fukurama-Class distribution.