mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
944d24ddc7
- Add LICENSE - Use DISTNAME instead of DISTVERSION - Pass maintainership to submitter - While I'm here, remove Author line Changes: http://search.cpan.org/dist/Object-Enum/Changes PR: ports/190060 Submitted by: Muhammad Moinur Rahman <5u623l20@gmail.com>
9 lines
193 B
Plaintext
9 lines
193 B
Plaintext
use Object::Enum qw(Enum);
|
|
|
|
my $color = Enum([ qw(red yellow green) ]);
|
|
# ... later
|
|
if ($color->is_red) {
|
|
# it can't be yellow or green
|
|
|
|
WWW: http://search.cpan.org/dist/Object-Enum/
|