freebsd-ports/devel/p5-Object-Enum/pkg-descr

10 lines
221 B
Text
Raw Normal View History

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/
Author: Hans Dieter Pearcey