#!/usr/local/bin/perl5 -w print "Please enter file name: "; $htmlfilename = ; chop($htmlfilename); $myhtmfile = "$htmlfilename".".htm"; $myjpgfile = "$htmlfilename".".jpg"; open(OUT, ">$myhtmfile"); open(IN, "template.htm"); while() { $line = $_; if ($line =~ m//) { print "Please enter title: "; $title = ; chop($title); $line =~ s//$title/; print OUT "$line\n"; } elsif ($line =~m//) { print "Height of the image: "; $height = ; chop($height); print "Width of the image: "; $width = ; chop($width); $line =~ s//$myjpgfile/; $line =~ s//$height/; $line =~ s//$width/; print OUT "$line\n"; } elsif ($line =~m//) { print "Please enter caption: "; $caption = ; chop($caption); $line =~ s//$caption/; } elsif ($line =~m//) { print "Please enter photographer: "; $photographer = ; chop($photographer); $line =~ s//$photographer/; } elsif ($line =~m//) { print "Please enter source: "; $source = ; chop($source); $line =~ s//$source/; } elsif ($line =~m//) { print "Please enter return URL (i.e. ../../study_collections/etc): "; $source = ; chop($source); $line =~ s//$source/; } elsif ($line =~m//) { print "Please enter collection description (i.e., Holding the Line, Date Range): "; $cd = ; chop($cd); $line =~ s//$cd/; } else { print OUT "$line\n"; } } chmod 0755, $myhtmfile;