Yes probably, just perl is very compatible with HTML. The only issue I see is the perl script must be placed in a separate document. The option of removing the iframe is quite simple, by completing all processes in one script, including printing the HTML template using the script