![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^4: A short, "iffy" rantby dragonchild (Archbishop) |
on Oct 12, 2004 at 19:09 UTC ( #398658=note: print w/replies, xml ) | Need Help?? |
If it is important that the maintainer notice that each choice is mutually exclusive, then make them extremely obviously mutually exclusive. Also, Ovid is discussing the fact that most if-statements are of a form that would be better written as a switch statement. Additionally, switch statements, in Perl, are nearly always better written as dispatch tables. And, if you really want a dispatch table, try the following:
There's no rule that says dispatch tables have to be hashes of subrefs. Being right, does not endow the right to be rude; politeness costs nothing.
In Section
Meditations
|
|