in reply to Re^2: Pass the value from perl script to html page
in thread Pass the value from perl script to html page

Then I would recommend some templating mechanism such as Template - you might also find useful information in: