in reply to Re: Moose and enum
in thread Moose and enum

Ok, seems to be something funny going on here.
my $M = Person->new( name => 'A', sex => 'please' ); print $M->dump;
produces this output:
$VAR1 = bless( { 'sex' => 'please' }, 'Person' );
I guesss it could be a platform/version issue:
C:\>perl -MMoose -e "print $Moose::VERSION" 0.22 C:\>perl -MMoose::Util::TypeConstraints -e "print $Moose::Util::TypeCo +nstraints::VERSION" 0.13 C:\>perl -v This is perl, v5.8.8 built for MSWin32-x86-multi-thread

Replies are listed 'Best First'.
Re^3: Moose and enum
by FunkyMonk (Bishop) on May 29, 2008 at 16:00 UTC
    I downloaded Moose version 0.22 from CPAN, but it failed most of its tests.

    I'd try upgrading if I were you


    Unless I state otherwise, all my code runs with strict and warnings