constant::abs - Perl pragma to declare previously constants using absolute name
Version 0.01
Define compile-time constant using full package name. The main reason is to use for forward definition of debugging constants. Created as an addition for constant::def
constant::def
# complex way # in main.pl BEGIN { *My::Module::Debug = sub () { 1 }; } use My::Module; ################ # using this distribution # in main.pl use constant::abs 'My::Module::DEBUG' => 1; use My::Module;
Syntax is fully compatible with constant
constant
constant::def, constant
Mons Anderson, <mons at cpan.org>
<mons at cpan.org>
Copyright 2009 Mons Anderson.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install constant::def, copy and paste the appropriate command in to your terminal.
cpanm
cpanm constant::def
CPAN shell
perl -MCPAN -e shell install constant::def
For more information on module installation, please visit the detailed CPAN module installation guide.