Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/songmu/p5-const-common
https://github.com/songmu/p5-const-common
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/songmu/p5-const-common
- Owner: Songmu
- License: other
- Created: 2014-04-20T06:31:50.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-20T06:34:46.000Z (over 10 years ago)
- Last Synced: 2024-10-11T21:09:24.159Z (27 days ago)
- Language: Perl
- Size: 133 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# NAME
Const::Common - Yet another constant definition module
# SYNOPSIS
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!# DESCRIPTION
Const::Common is a module to define common constants in your project.
# METHOD
## `$hashref = $class->constants`
## `$array = $class->constant_names`
## `$value = $class->const($const_name)`
# LICENSE
Copyright (C) Songmu.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.# AUTHOR
Songmu