Bash parser conversion to Perl. 

End result is file consolidation with the main program.