"Uri Guttman" <u...@stemsystems.com> writes: > i disagree that it is elegant. too often if/else lists are not > needed. many can be replaced by dispatch tables. if one of the clauses > does just a return or next/last that can be replaced with a modifier or > shorter statement. without ANY serious work, i have over 10k lines of > perl code in one system with about 10 else's and maybe 3 elsif's. it > just is a matter of knowing how to manage flow control well and you > rarely need else's.
Can someone show an example of an if/elsif/else nested construct being replaced by a dispatch table? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/