in reply to Re^2: 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?

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.