[Wellington-pm] 'enum' for Perl?

Cliff Pratt enkidu at cliffp.com
Sun Apr 16 01:20:37 PDT 2006


Is there a way of doing enums in Perl?

eg so that using the string ONE in a program has the same effect as using 1.

exit ONE ; # exit 1

Am I missing something obvious here?

Cheers,

Cliff

-- 

http://barzoomian.blogspot.com


More information about the Wellington-pm mailing list