in reply to
Re^2: How to store multiples lines/records in a array
in thread How to store multiples lines/records in a array
scalar (@values) will give you the number of elements in @values.
Since you are printing 6 per line, the number of lines will be:
my $linecount = int((scalar(@values) +5)/ 6); #Rounding up.
use ($linecount -1) instead of the hard coded 5.
You subtract one because the starting value is 0.
My goal ... to kill off the slow brain cells that are holding me back from synergizing my knowledge of vertically integrated mobile platforms in local cloud-based content management system datafication.