# HTML ignores the "\n", but it looks nicer in 'print'; $table="\n"; for my $i(0..5) { $table .= ""; for (@values[$i*6 .. ($i*6+5)]) { # 'Array Slice' $table .= ""; } $table .= "\n"; } $table .= "
$_
\n"