My code is a mess, please help!

David Cantrell david at
Tue Feb 9 11:16:17 GMT 2010

If any of you have been foolish^Wbrave enough to look at the CPANdeps
source code, you will no doubt have recoiled in horror.  That's what
happens when a quick hack that works gets put into production, then has
features added, and becomes popular, gets some needed performance
tweaks, and so on.

It needs a gigantic re-factor.  Other than the Mark 1 Eyeball, can
anyone recommend any tools for finding duplicated chunks of code?
Perhaps something using PPI, as that should be able to cope with varying
whitespace/variable names between the duplicated chunks.

David Cantrell | Cake Smuggler Extraordinaire

Aluminum makes a nice hat.  
All paranoids will tell you that.
But what most do not know     
Is reflections will show    
On the CIA's evil landsat.

More information about the mailing list