November 14th, 2000, 06:45 AM
Im a Perl newbie, and what exactly is
I have a cgi-bin directory for cgi scripts,
does this have anything to do with
November 14th, 2000, 07:08 AM
Simply put, mod_perl is a perl interpreter which is built into the Apache web server. There are more precise definitions, but this one is the easiest to understand. The process of writing perl scripts is almost the same, however there are a few things you need to watch out for. As a example, all file handles need to be closed beforethe script is over. This differs from the standard Perl style.
Useful link: http://perl.apache.org/ .
November 26th, 2000, 12:13 PM
mod_perl module makes your Perl scripts run fast, by turning them into compiled exectables inside Apache server. If you have mod_perl on your server, do not protest. It is the fine thing to have.
Just observe the following rules:
1) declare variables like this:
2)never call 2 variables the same, even if they are in different scripts.
If you do it, you will be OK, if not, then you will see the frightful occurrence of the so-called "sticky variables".
A cgi-bin folder you may have also without mod_perl. It is just a place to put your scripts in.