Refactoring example
Large ugly function that processes a job
500 lines of code, convoluted logic
accepts twelve parameters via @_
88 local variables(!)
continued...