What to do when dealing with badly written code

checkout the code from the repository, make a backup copy, in the directory that you are going to do refactor, feed the code through perltidy, look at the code, move bad docs or anything that bother you out of the way. Make a plan. have a test suite for coverage before changing code. use strict. use warning. See Programming Practices

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License