#! /usr/bin/perl -w
$dir = "./";
$folder_link = "misc";
$image_counter = 0;
open( OUTPUT, ">./image_html.txt" );
opendir( IMAGE_DIR, $dir );
@images = grep { not m/small_/ } readdir IMAGE_DIR;
@images = grep { m/.JPG$/ } @images;
print OUTPUT "
\n\t\n";
foreach $image ( @images )
{
if( $image_counter == 3 )
{
print OUTPUT "
\n\t\n";
$image_counter = 0;
}
$small_image = $image;
$small_image = "small_" . $image;
$small_image =~ s/\.JPG/\.jpg/;
print OUTPUT "\t\t | \n";
$image_counter++;
}
print OUTPUT "\t
\n
\n";
closedir( IMAGE_DIR );
close( OUTPUT );
exit;