"be consistent" | |
PerlMonks |
Re: Re: How to do that with eval ?by tilly (Archbishop) |
on Apr 10, 2004 at 11:39 UTC ( [id://344116]=note: print w/replies, xml ) | Need Help?? |
Just to be clear, an if/elsif/elsif/.../else structure is typically faster than a dispatch hash, but doesn't scale as well to large numbers of possibilities. Scalability is like an 18-wheeler, great for doing a lot with lots of data, but for daily use the sports car is likely faster and loads more fun. A better reason to use a dispatch hash is because you prefer how it lets you organize a piece of code.
In Section
Seekers of Perl Wisdom
|
|