while (@array) { print join(',', splice @array, 0, 3) . qq/\n/ } [download]
In reply to Re: Group array in threes by Bloodnok in thread Group array in threes by joec_