mirror of
https://git.freebsd.org/ports.git
synced 2025-07-12 14:59:13 -04:00
- 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>
8 lines
193 B
Text
8 lines
193 B
Text
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/
|