in reply to Re: I'm getting a 500 Internal Server Error - how can I make this work?
in thread I'm getting a 500 Internal Server Error - how can I make this work?

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on Re^2: I'm getting a 500 Internal Server Error - how can I make this work?

Replies are listed 'Best First'.
Re^3: I'm getting a 500 Internal Server Error - how can I make this work?
by fishbot_v2 (Chaplain) on Apr 05, 2006 at 13:05 UTC
    Its shared host, where NOT possible run command this way.

    So test it on that machine you are sitting in front of. You'll get pretty tired of uploading, testing, uploading, testing pretty soon anyway. Install Perl if you don't have it already, and deal with at least all the syntax errors before uploading.

    If you aren't familiar with Perl, then start by working with short contained scripts on a local machine, where you can see output and errors and learn to debug.

Re^3: I'm getting a 500 Internal Server Error - how can I make this work?
by monarch (Priest) on Apr 05, 2006 at 12:25 UTC
    Your code is
    line 8 - open (DATA, $file); line 9 - $num = ; line 10 - close (DATA);

    Line 9 has a syntax error. The variable $num is not being assigned anything. The semicolon (';') tells Perl where the end of the statement is. Hence saying $num = doesn't mean anything to the compiler, because nothing is being assigned.

Re^3: I'm getting a 500 Internal Server Error - how can I make this work?
by monarch (Priest) on Apr 05, 2006 at 12:21 UTC
    Hi, I have been scheduled to perform surgery on Mr Unlucky in Operating Room 3.

    > use the scalpel to cut open the chest cavity

    I'm not a doctor expert, what do you mean by "scalpel"?