in reply to Re: Learning Perl - Question About Using a For Loop To Pull Data From an Array
in thread Learning Perl - Question About Using a For Loop To Pull Data From an Array

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.

But God demonstrates His own love toward us, in that while we were yet sinners, Christ died for us. Romans 5:8 (NASB)

  • Comment on Re^2: Learning Perl - Question About Using a For Loop To Pull Data From an Array