110 |
$notfound = 1; |
$notfound = 1; |
111 |
$j=0; |
$j=0; |
112 |
|
|
113 |
while (($j < $#htmlfiles) && ($notfound)) { |
while (($j <= $#htmlfiles) && ($notfound)) { |
114 |
open(THISHTML,$htmlfiles[$j]) || die("can't open $htmlfiles[$j]"); |
open(THISHTML,$htmlfiles[$j]) || die("can't open $htmlfiles[$j]"); |
115 |
|
|
116 |
while (<THISHTML>) { |
while (<THISHTML>) { |
160 |
### added by AJA: create a flag to indicate whether file has been associated |
### added by AJA: create a flag to indicate whether file has been associated |
161 |
# with a template (1 = no and 0 = yes) |
# with a template (1 = no and 0 = yes) |
162 |
$thisfile=0; |
$thisfile=0; |
163 |
while ($thisfile < $#htmlfiles) { |
while ($thisfile <= $#htmlfiles) { |
164 |
$htmlfileassociated[$thisfile]=1; |
$htmlfileassociated[$thisfile]=1; |
165 |
$thisfile++; |
$thisfile++; |
166 |
} # loop through file |
} # loop through file |
195 |
|
|
196 |
$pattern = $template2patternlist[$thispattern+1]; |
$pattern = $template2patternlist[$thispattern+1]; |
197 |
$thisfile=0; |
$thisfile=0; |
198 |
while ($thisfile < $#htmlfiles) { |
while ($thisfile <= $#htmlfiles) { |
199 |
open(THISHTML,$htmlfiles[$thisfile]) || die("can't open $htmlfiles[$thisfile]"); |
open(THISHTML,$htmlfiles[$thisfile]) || die("can't open $htmlfiles[$thisfile]"); |
200 |
while (<THISHTML>) { |
while (<THISHTML>) { |
201 |
if (/$pattern/ && $htmlfileassociated[$thisfile]){ |
if (/$pattern/ && $htmlfileassociated[$thisfile]){ |