I would like to display array contents in column view. For example: My array contains 9 values as below:
@numbers = ("One","Two","Three","Four","Five","Six","Seven","Eight","Nine");
I want display the values in 2 columns as below:
One Two
Three Four
Five Six
Seven Eight
Nine
I can use tables and display as shown above but i want to do the same thing dynamically using loops for a very large array.
Can anyone please help me with this.
Thank You
Avinesh
Using splice, you can also modify number of columns: