Const::Common - Yet another constant definition module
package MyApp::Const;
use Const::Common (
BAR => 'BAZ',
HASH => {
HOGE => 'hoge',
},
);
__END__
use MyApp::Const;
print BAR; # BAZ
print HASH->{HOGE}; # hoge;
HASH->{HOGE} = 10; # ERROR!
Const::Common is a module to define common constants in your project.
Copyright (C) Songmu.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Songmu y.songmu@gmail.com