To start, you have your versions backwards. You probably have apache 1.3x. Perl should be version 5.6 or 5.8. You can check that by typing perl -v at the command line.
Once you are sure perl is working, test your script without Apache.
If that's ok, you might need to change the shebang line to point to whatever folder the perl binary is in. #c:/perl/bin or wherever is happens to be.
Apache might need to be configured to run scripts. At the least you might need a scriptalias directive. If you never did this before, it's in a file called httpd.conf. I have some information about it at http://frontiernet.net/~hsweet/comp1/apache.htm
Getting scripts to run doesn't really involve anything difficult, but you do have to get a lot of ducks in a row. Also, Teach Yourself Perl in 24 Hours has a good introduction to CGI
good luck
Time flies like an arrow, fruit flies like banannas
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.