I need to port a Perl script to PHP. The script emulates the Word "compare documents" feature when comparing different versions of an HTML document on the server. I've seen the Perl-to-PHP translation guide at http://www.cs.wcupa.edu/~rkline/perl2php/
, but I need help from someone with expertise in both Perl and PHP.
The Perl script's short source code is visible at: http://126.96.36.199/htmldiff2.htm
The expert who answers with a good PHP port can get points here and at the corresponding PHP Question at http://www.experts-exchange.com/Web/Web_Languages/PHP/Q_22049380.html
(by leaving the answer in both areas, or the answer in one area and a note about it in the other). Thanks.