[Israel.pm] Moose question

Dov Levenglick dov.levenglick at gmail.com
Tue Apr 3 23:27:59 PDT 2012

I want to declare a 3 value'd enum equivalent - i.e. (mixing C and perl):

package My::Enum
use Moose;

typedef enum {A, B, C} enum_t;            // knowledge in C - how do I
port this concept to Perl?
has 'b' => (isa => 'enum_t',  is => 'rw');


How would one go about doing that

Best Regards,
Dov Levenglick

More information about the Perl mailing list