in reply to Re: (Modules || Libraries) usage
in thread (Modules || Libarires) usage

This was my first thought also--I don't think the size of your program is the issue. If you are use'ing any CPAN modules, you might be surprised how many lines of code get pulled in there, but this is seldom the source of major performance problems.

You can convert your libraries into modules for various reasons, but speed isn't necessarily one of them.

It would probably be better to do some benchmarking and figure out what is slow. Now, benchmarking might be easier if you had your code in small, digestable chunks in a module.

As mentioned the other responses, if you are running CGI code through a server, mod_perl will likely solve many of your speed problems.