|Problems? Is your data what you think it is?|
Perl CGI gives HTTP error 500by bofh_of_oz (Hermit)
|on May 06, 2005 at 13:04 UTC||Need Help??|
bofh_of_oz has asked for the
wisdom of the Perl Monks concerning the following question:
I realize my problem is probably a trivial one, but I was unable to solve it do far...
I have been using Perl for standalone scripts for a little while, and just started to use it for CGI scripts...
The Apache is running, the config is valid and verified many times over, the script is in the right folder, and the permissions are correct (I believe chmod 755 does it right). Yet, it still gives me an error when I try to run the script...
Here is the code part that deals with graph generation (I removed everything else to test it). According to every source I could find - it should work... yet it does not
UPDATE: The problem solved... It seems strange behaviour to me, but here is the story: The script is created on Windows PC (CR/LF). Then, the script is transferred to Linux PC (CR), where it promptly stops working... Resolution: open script in vi, make a little change, save - it starts working... doh!
Can anyone point me in the right direction to find the answer? Many thanks to you all.