in reply to Group array in threes
{ local $" = ","; my $_ = "@array"; s/([^,]*,[^,]*,[^,]*),/$1\n/g; print; } [download]