--- mitgcm.org/devel/buildweb/bin/bonniefy.pl 2006/04/09 03:29:35 1.3 +++ mitgcm.org/devel/buildweb/bin/bonniefy.pl 2006/04/09 13:30:36 1.4 @@ -160,7 +160,7 @@ ### added by AJA: create a flag to indicate whether file has been associated # with a template (1 = no and 0 = yes) $thisfile=0; - while ($thisfile < $#htmlfiles) { + while ($thisfile <= $#htmlfiles) { $htmlfileassociated[$thisfile]=1; $thisfile++; } # loop through file @@ -195,7 +195,7 @@ $pattern = $template2patternlist[$thispattern+1]; $thisfile=0; - while ($thisfile < $#htmlfiles) { + while ($thisfile <= $#htmlfiles) { open(THISHTML,$htmlfiles[$thisfile]) || die("can't open $htmlfiles[$thisfile]"); while () { if (/$pattern/ && $htmlfileassociated[$thisfile]){