#usr/bin/perl
use strict;
use warnings;
my @Pics; # test data
push @Pics, "/pics/pic_$_.jpg" for (1..13);
my @Cells;
push @Cells,
qq|

| \n|
for (@Pics);
my @Rows;
while (@Cells) {
my @Row;
push @Row,
shift(@Cells) || "
| \n"
for (1..5);
push @Rows,
" \n",@Row,"
\n";
}
print "\n";
__END__