refactored perl based jobparser. now using closures for repeated code sections.