hello everybody. I'm having a problem with perl writing files. I have written the following test script
$em = "require ";
$ne = "test.rpt"
open(NR, ">$ne") || die($!);
print NR "$em";
$cnt = chmod 0755, $ne;
when I invoke the script from the command line I get the following message
syntax error at cgi-bin/script1.cgi line 5, near "open"
Execution of cgi-bin/script1.cgi aborted due to compilation errors.
anybody have an idea what is going on?