Context, context, context;) The print function accepts either a list or a scalar. The '."\n"' you are using in the second example forces scalar context, which will return the number of items in the array.
Changing the dot(.) operator to a comma (,) will give print a list context to work with.