#!/usr/bin/perl -w # Location of the ImageGallery.pm module # (if not in the current path) use lib '/path/to/modules'; use ImageGallery; my $webapp = ImageGallery->new ( # Location of templates. TMPL_PATH => '/path/to/templates/', PARAMS => { # Full path to images photos_dir => '/path/to/photos', # Thumbnail size (s, m or l) thumb_size => 'm', # Number of thumbnails per row thumbs_per_row => 4, script_name => $0 } ); $webapp->run();