in reply to Re^2: How do I read this line of code?
in thread How do I read this line of code?

Okay, this clarifies a lot, so there is no real need for a for loop.

The for loop is not used to loop through the elements of the array, but rather to loop through the things we want to add to $buff being:

  1. a newline
  2. spaces
  3. the entire content of the array