";
$corner = "
";
$top = "
$cur_name -- Jason Gallicchio
";
$footer = "
";
$postamble = "
";
$mode = 0; # 0=Wait for 1=Print 2=Wait to EOF
foreach $cur_in_html_line (@cur_in_html_lines) {
if ($mode == 0 && $cur_in_html_line =~ m//) {
$mode = 1;
print "In Body of $cur_in_file..."; #154 width
print OUT_HTML $preamble;
print OUT_HTML $corner;
print OUT_HTML $top;
&menu();
print OUT_HTML "\n";
}
elsif ($mode == 1 && $cur_in_html_line =~ m/<\/body>/) {
$mode = 2;
print " ...out of body of $cur_in_file\n";
print OUT_HTML "\n
";
print OUT_HTML $footer;
print OUT_HTML $postamble;
}
elsif ($mode == 1 && !($cur_in_html_line =~ m/<\/body>/)) {
print OUT_HTML $cur_in_html_line;
}
}
}
}
system("chmod -R a+rX *");
sub menu{
print OUT_HTML "\n\n\n";
}