or download this
while($file=~m/<\?CLG\.MDFO[^>]+?ID="O(.+?)"[^>]+?IDREF="C(.+?
+)"[^>]+?>(.+?)<\?CLG\.MDFC[^>]+?ID="C\1"[^>]+?IDREF="O\2"[^>]+?>/msgi
+)
{
...
{print FOUT "<p><font color=\"red\">$path:</font> <fon
+t color=\"green\">Warning: ".$warn++."</font><font color=\"darkteal\"
+>: Line: $ln </font>\ <font color=\"blue\">Check: MDFO tag is pl
+aced before <$stag tag, the MDFC tag should close after the same &
+lt;$stag tag.</font></p>";}
}
}