Just see you have mod_perl installed. That will take care of the overhead.
Try to forget javascrit exists :-) Write everything in perl from the start!
You're in control of what happens cos it's serverside!
-- My opinions may have changed,
but not the fact that I am right