in reply to Word Press and Perl
You could use an iframe to incorporate the Perl part. Read from the database, make your calculations and send the data back to the iframe via websockets.