Perl issue

software development

#1

hello everybody. I’m having a problem with perl writing files. I have written the following test script

#!/usr/local/bin/perl

$em = "require ";
$ne = "test.rpt"
open(NR, “>$ne”) || die($!);
print NR “$em”;
close NR;
$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?


#2

semi-colon missing?

Should be $ne = “test.rpt”;


Norm