Most probably you want to learn how to use cgi. The best to do is use the standard CGI
library, see its documentation. In case you'd want to embed perl code into html (like php does), instead of Embperl I recommend you to try PLP
which is much better.