# each table consists of three lines:
# the
tag (nothing else) on one line
# all | content | ...
(nothing else) on the next line
# the
tag (nothing else) on the third line
my ($open,$content);
my $Txt = '';
while (<>) {
if ( // ) {
s/
/\n/gi unless ( /id="CODE"/ );
}
$Txt .= $_;
}