Of course, perl is pretty free form, so you can feel free to declare a list on multiple lines if you so desire. If you think back, you'll realize we actually used two arrays in the beginning. So now we can see that print displays all elements of a list. I suppose that may seem trivial, but trust me, it's actually pretty important. Yes, I did, and if you've been playing around with perl, you'll see that I was right.
Truth be told, they both are.
The key is that a list, strictly speaking, does not need parentheses. To add to an array, you can refer to the array itself. If there are too many, the values just get dropped. Mac Editor Pat. Inc. All rights reserved.