Even a small set of perl 1-liners represent a powerful integration of near complete programs, so you can write a complete operating system in less than 40K lines of perl.
So, what exactly were you trying to attempt/achieve in those 40,000 lines of perl code ? I am extremely curious to know :-)