){
@fld = split;
if ( /^TITLE/ ) {
$t{title} = $fld[1];
for $n1 ( 2 .. $#fld ) {
$t{title} .= ' ' . $fld[$n1];
}
} elsif ( /^LINK/ ) {
$t{link} = $fld[1];
} else {
push( @{ $t{list} }, $_);
}
}
close(FH);
open(OUT,">$t{file2}");
print OUT '',"\n";
print OUT '',"\n";
print OUT '',$t{title},"\n";
print OUT '',"\n";
print OUT '',"\n";
print OUT '',"\n";
print OUT '',"\n";
print OUT '',$t{title},'
',"\n";
print OUT '',$t{link},'',"\n";
print OUT '
',"\n";
for $n1 ( 0 .. $#{ $t{list} } ) {
print OUT '',$t{list}[$n1];
}
print OUT '
',"\n";
print OUT '
',"\n";
print OUT '',$t{link},'',"\n";
print OUT '',"\n";
print OUT '',"\n";
close(OUT);
__END__;