in reply to advice perl and mysql

You should pick up a copy of the book High Performance MySQL. Since you didn't give us any real information about your problem you'll have to learn enough to solve it yourself!

-sam