The first thing I would do, besides document and burn everything, would be to format the code. Go through the program line by line, tabbing here, spacing there, and follow its flow. This way, you can guage what needs to be moved where, and what needs to be stripped away.
Turn on strict/-w and see what breaks. Course, do it in a test instance. Just my $.02. Sometimes I'm given projects like this as well, only its usually code I wrote months ago before I had this huge learning spurt.
You could always start over, with a fresh code base, and cut-n-paste things in as you need them. Rewritten as you see fit?
_14k4 -
perlmonks@poorheart.com (
www.poorheart.com)