If you "forked" them then this implies that both versions are under version-control, e.g.git or svn. Both of which can compare and reconcile differences – especially if you did each set of changes (as you should have) on separate branches. You should have no need of Perl-tomfoolery here.