Thank you very much for all the great suggestions. I fixed the program with Brian's suggestion as it seemed to be the simplest solution. However, I am playing around with Ted's code, seems interesting. <br><br>Thanks again.<br><br>Richard<br><br><br><br><br><br><b><i>"Randal L. Schwartz" <merlyn@stonehenge.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> >>>>> "Jim" == Jim Thomason <jim@jimandkoka.com> writes:<br><br>Jim> Terseness != clarity. I think this'd add work for the maintenance<br>Jim> programmer. Less time to add a new variable in two places than figure<br>Jim> out what this is, if they don't know.<br><br>Well, what you're up against is "repetition != clarity" either.<br>If I saw nine variable names, then repeated two lines later, I'd<br>not be sure without close scrutiny that those are the same names.<br><br>But with my construct,
it's "don't repeat yourself", and it's very clear<br>that I'm creating these specific variables.<br><br>I might also put a comment there that says "declare and use the<br>variables".<br><br>-- <br>Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095<br><merlyn@stonehenge.com> <URL:http: www.stonehenge.com="" merlyn=""><br>Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.<br>See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!<br>_______________________________________________<br>Chicago-talk mailing list<br>Chicago-talk@pm.org<br>http://mail.pm.org/mailman/listinfo/chicago-talk<br></URL:http:></merlyn@stonehenge.com></jim@jimandkoka.com></blockquote><br>