it's not very practical if you have alot of types,sub BLUE { 1 } sub RED { 2 } sub GREEN { 3 } ... print "Green" if $color == GREEN; print "Blue" if $color == BLUE;
In reply to Re: Enum
by ar0n
in thread Enum
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |