View Full Version : how to put perl in HTML?
first of all sorry if this is in the wrong forum, i didn't know what one it should go in, anyway is there a way to put any perl program in my site? the reason i want to do this is i have a site and i want users to log in and i have a script already made in perl that i can use, i tried using
<script language="perl"
(perl code)
</script>
but that seems to do nothing, thanks in advance
agent002
06-28-2004, 04:04 PM
Perl is a server-side language, that means that it's executed by the server, unlike HTML, CSS and JavaScript that is executed by your browser. That's why you need a webhosts that supports Perl. Almost all paid webhosts support Perl, and many free ones do too, although they usually show a banner on your site. Here (http://www.free-webhosts.com/free-cgi-web-hosting.php) are some free webhosts supporting Perl.
If you wish to run Perl scripts on your own computer (for testing purposes, so you don't need to upload them to your webhost every time you want to test them), see the Perl FAQ thread at the top of the Server Side Programming forum for instructions for installing Perl and Apache on your computer. There's also a lot of other valuable information so browse through all of the FAQs in that thread.
kevin
06-28-2004, 06:56 PM
It is possible to embed Perl scripts in HTML documents, but I've never seen it done in practice. Its called Perlscript, its an activeX scripting engine, But I am not sure if its meant for internet purposes. You can read about it in the HTML files that come with Activestate Perl when you download it.
vBulletin® v3.6.7, Copyright ©2000-2010, Jelsoft Enterprises Ltd.