|P is for Practical
Searching for duplication in legacy codeby yulivee07 (Sexton)
|on Nov 23, 2016 at 08:59 UTC
yulivee07 has asked for the wisdom of the Perl Monks concerning the following question:
I inherited a really large legacy codebase which I am meant to maintain for the future. I have been working with this codebase for a while now and noticed by scrolling through the code that there is code duplication (especially the same subroutines) in many cases. I would like to make modules for all that duplicate functionality, but first I am looking for a way to find the code duplication.