in reply to Finding duplicated code in Perl

As someone who's taken over a similar project in the past, I'm going to give you a piece of advice you're not going to want to hear. Do it by hand. Do not use a tool to do your work.

As if that isn't enough, you're probably going to also need a whole bunch of documentation. I'll bet you don't have most of the following:

Those documents are at least as important than the code, because they tell you what the code is supposed to do. The code just tells you what it currently does. Are you sure that what it does right now is correct? How much are you willing to bet?

Furthermore, most tools aren't able to use many of the reasons to use Perl in the first place. For example, I doubt a tool could reasonably handle

I hope you really choose to do this by hand. It will take about 3-6 man-months to do it. (I'm not kidding - it won't take that long.)

------
We are the carpenters and bricklayers of the Information Age.

The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

... strings and arrays will suffice. As they are easily available as native data types in any sane language, ... - blokhead, speaking on evolutionary algorithms

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re: Re: Finding duplicated code in Perl
by duff (Parson) on Nov 26, 2003 at 15:02 UTC

    dragonchild, if I could ++ this node any more I would. So, consider this a virtual ++ x 100. :-)

    Although, you lose a few points because your signature is so long...*hint* *hint*