provided by: 
Originally published at Internet.comI'm going to assume at this point that you have the ability to use PERL and set permissions on a server. We're going to go over two more preparatory steps in this primer:
I know this is still a little boring, but stay with me; you need to know how the trick works before you can start pulling rabbits out of the hat, unless you already have a lot of hats that just happen to have rabbits.
-----------------------------------
Creating The Bin
First off, you're going to need a place to put all of your PERL scripts. The most common method is to set up a directory where all of your PERL scripts will sit. There are other methods of doing this. In fact, I've worked with server operating systems that don't require a directory to be set up. As long as the PERL script had the extension "cgi", it could sit anywhere. I wasn't fond of that. I set up the directory anyway.
If you want to do this a different way, by all means go ahead. I'm simply sticking with the method I'm most use to. So, let's make a directory, shall we?
I suggest you name the directory you are about to create "cgi-bin" as that is what I am going to call it the rest of the way through these primers. Please notice that is a hyphen between the "cgi" and the "bin." ...
Read article at Internet.com site