A CGI script doesn't automatically become a mod_perl "script". It is still executed faster, because the perl interpreter now is memory-resident inside apache, but to fully benefit from mod_perl you will have to rework your code into a handler. The
mod_perl manual describes how this is done.