No, you don't need a loop to create the array. The OP indicated that the program worked, only that he did not understand why. The ctrl-D does indicate this should be run in a *nix environment, not a Windows one. I'm with you in that I would never write it this way.
In reply to Re^2: Learning Perl - Question About Using a For Loop To Pull Data From an Array
by GotToBTru
in thread Learning Perl - Question About Using a For Loop To Pull Data From an Array
by aUserName
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |