mikfire has asked for the wisdom of the Perl Monks concerning the following question:
Is there a Monk present who could provide me enlightenment on this topic? If constant.pm is considering odious, is there another way of accomplishing the same end? I really need the mneumonic codes, but I am open to alternate ideas.
Mik
mikfire
PS - Yes, I have already thought of using a hash to hold the return codes and returning the correct codes from there, eg, return $ERROR_CODE{NO_ERROR}; I just liked the way it read with constants better, eg, return NO_ERROR;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Constant Functions
by Adam (Vicar) on May 24, 2000 at 02:01 UTC | |
by Adam (Vicar) on May 24, 2000 at 03:50 UTC | |
|