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


NAME

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


VERSION

Version 0.01 (alpha)


SYNOPSIS

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


DESCRIPTION

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

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;
 
 =head1 EXPORT
 

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


METHODS

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

see perldoc of the Fukurama::Class manpage