C style enumerated types and bitmask flags in Perl
