Direction.pm. package Direction;. use Class::Enum qw(Left Right) ; ... print Left() == Direction->value_of( 'Left' ); # 1. # retrieve value of ordinal.
確定! 回上一頁