in reply to Braces around a section of code
I am currently in "Self-Teaching" mode using Perl. I have done programming in the past - Kornshell, GSL, CLI and a little c++ (all self taught). So I know am lacking a lot of the simple fundamentals of writing code.
I understand now what the braces mean with restricting the scope. The code I provided was only a portion of the section within a much larger program.
I will try the suggested "FOR" command format.
for my $i (0 .. $armload_cnt - 1) {
Thank you for all your feedback.
|
|---|