PDA

View Full Version : how do you embed perl in html?


esotericsean
03-15-2006, 06:58 PM
okay, i've read through all of yourhtmlsource's perl section and mostly understand it. now, i have an html page and would like to implement a few little scripts into it without writing the entire page in the .cgi file. when doing so, do you always have to use a <form action="whatever.cgi"> ? or is there another way of embedding it? i basically want to use a little cgi script here, here, and here (just something small that uses print to output some text).

i'm pretty new to perl, so any ideas?

FishMonger
03-15-2006, 08:19 PM
As a starting point, I'd recommend using HTML::Template.
http://search.cpan.org/~samtregar/HTML-Template-2.8/Template.pm

This article may be of interest.
Choosing a Templating System
http://www.perl.com/pub/a/2001/08/21/templating.html

and this
http://search.cpan.org/~grichter/Embperl-2.1.0/Intro.pod

esotericsean
03-15-2006, 08:28 PM
As a starting point, I'd recommend using HTML::Template.
http://search.cpan.org/~samtregar/HTML-Template-2.8/Template.pm

This article may be of interest.
Choosing a Templating System
http://www.perl.com/pub/a/2001/08/21/templating.html

and this
http://search.cpan.org/~grichter/Embperl-2.1.0/Intro.pod

thanks very much :) i'll read through those