Perl Monk, Perl Meditation | |
PerlMonks |
Re: Dealing with sloppy codeby zentara (Archbishop) |
on Nov 17, 2005 at 18:55 UTC ( [id://509521]=note: print w/replies, xml ) | Need Help?? |
I'm probably stating the obvious, but running code thru perltidy
often helps to clarify what is going on. Also I like ptkdb ( the Tk front end to the perl debugger), it lets you step thru code, set break points, watch variables, and visually see how the code jumps. After some initial analysis, you can start separating code out into sections, then subs, etc.
I'm not really a human, but I play one on earth. flash japh
In Section
Meditations
|
|