I wrote a web based application using a lot of modules as a CGI (using FastCGI to overcome the startup overhead).
This single CGI is a bit longer than 15000 lines. The overall project contains more than 35000 lines of perl code.
It works without any troubles and is also still maintainable.