in reply to RE: RE: Thoughts from a newbie
in thread Thoughts from a newbie

You said: "In the case of the for loop you are correct but, for the @units references I want *that* specific array element each time, and the format does not change. How would I get around that?"

You could at least use a variable instead of the number "5", and give it a speaking name. Hardcoded numbers are a Bad Thing. You should probably search for all other numbers than "1" or "0" in your scripts and replace them by variables.

If you are interested in good programming style, please do yourself a favor and read one or more of these books:

Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com