You really do not have to have your cgi applications in a separate directory named cgi-bin. But, we strongly suggest that you put them in a separate folder just as you do your images and Java classes. Copy the test CGI script test.pl into your cgi-bin directory.
Many Web servers require applications to have the .cgi suffix.
This file will make it easier for you to write CGI programs in Perl that handle information sent by Web browsers. Test the CGI script by pulling up the perltestcgi.html in your web browser, entering your name, and verifying your name comes back on the following page. If all goes well, and your name shows up on the page following the text field, then your cgi-bin directory is set up properly. You can now write your own Perl scripts, name them something.cgi, and run them from your cgi-bin directory.