R – How to identify and remove redundant code in Perl

perlrefactoring

I have a Perl codebase, and there are a lot of redundant functions and they are spread across many files.

Is there a convenient way to identify those redundant functions in the codebase?
Is there any simple tool that can verify my codebase for this?

Best Solution

You could use the B::Xref module to generate cross-reference reports.