Omega -1911 <mailto:[EMAIL PROTECTED]> wrote:

: I am still trying to grasp using case statements... Since I am
: new to this, I had a question as to the speed of using CASE. I
: currently have a script that has 91 if/elsif/else statements in
: total. Will switching to using CASE improve the execution of
: the script?

    Probably not. Don't worry about speed so much as style. Make
your code readable and as you become a better programmer, speed
will take care of itself.

    Chances are, there is a better solution than 91 if blocks. A
different data structure can often change code drastically. Can
you post the code (or a small representative portion)?

HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
254 968-8328


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to