in reply to Seeking advice about learning another's code

Okay, So after going through the perl, I am now beginnging to see the light. The sql, I am going to assume, (and verify later) is full of useful, albeit unnessacary functions that can be replicated without figuring out 1200 lines of sql. Which brings me to my next point. The code is broken into several subroutines, (actually, 8 to be precise), and the execution runs 4 of them in sequence, then emails the results (good or bad) to the owner of the file. If nobody minds, I will process my thoughts here, and subject them to criticism for robustness.


First Subroutine: initVars
Percieved Usage: To initialize variables (hey, I got one!!!)
Actions:
subroutine 2: filterUnWanted
Percieved Usage: to filter out unwanted files?
Actions:


subroutine 3: checkRecovery
Percieved Usage: to see if script ran fully last time.
Actions:


subroutine 4: processFiles
Percieved Usage: to process and verify all data in input files, and insert if good, email if bad.
Actions:


subroutine 5: processLogTable
Percieved Usage: takes all information from the log table in the dbase, and writes them to the log file
Actions:


subroutine 6: removeCtrlChars
Percieved Usage: to remove all control characters from the file by making a bunch of sed calls.
Actions:


subroutine 7: errorInLine
Percieved Usage: called when a line is found to have an error in it.
Actions:


subroutine 8: abortScript
Percieved Usage: called when an error is generated that prevents the script from continuing
Actions:
(I'll update more later, or if you all dont want to listen, I'll stop).

thanks!
E-Bitch