in reply to Re: Code refactoring challenge
in thread Code refactoring challenge

I know the code is crap. That's why I went to rewrite it! I didn't write it myself, I just maintain the bugger. Yes, its fugly, but its gotten the job done for the last year or two, (although adding even "use warnings" makes a pretty mess) .. I think this guy was a perl4ish programmer.

Whatever, the exercise was not to pick holes in the crap that's already there, but write those 10 lines you claim ;)

C.

Replies are listed 'Best First'.
Re^3: Code refactoring challenge
by Anonymous Monk on Apr 30, 2005 at 14:58 UTC
    Whatever, the exercise was not to pick holes in the crap that's already there, but write those 10 lines you claim
    Well, the easiest thing would be to start over I think. Why don't you post the desired output for the data sample you provided (instead of having us try to compile and run the original program in our heads).