in reply to Finding duplicated code in Perl

As far as I know, there is no way to reliably automate this process. My experience with automatic code reformatters and analyzers is - to date - rather disappointing. But maybe I'm wrong.

You could think about building up a generalized library for your area of interest and to build by hand each of the scripts so that it's generally built of a few library calls.

Something I would do on the other side is that it's probably way too messy to test and document all existing code; and even if you don't know for sure, you can reasonably assume most of what existing scripts do is correct. Therefore I'd:

This way you'll: At the point you are now, it's the right time to implement something like this. It won't cost so much now but will be very useful in the future.