in reply to Enum
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Enum
by Fastolfe (Vicar) on Jun 20, 2000 at 22:00 UTC |