CGI error in CNS (fixed)

Che Ma chema at ucsd.edu
Tue Mar 20 17:19:34 EST 2001


Hi Joe,

Thank you for the tip on the Perl syntax!

I replaced all the "undef()" with "undef " as shown
in the following files in the cgi-bin/,

cns_form.cgi: undef %argnv, $argstr ;
            : undef @dirs_and_file ;
            : undef @lines, $lines, $rhs, $lhs, $doc_safe;
            : $choice_str=''; $other=0; undef @choices; 
            : undef $numrows, $rowcount, $rownames, @rownames;
            : undef $numcols, $colcount, $colnames, @colnames;

cns.lib: undef @d, $SEC, $MIN, $HR, $DY, $MO, $YR, $i ;

cns_save.cgi: undef %argnv, $argstr ;

cns_view.cgi: undef %argnv, $argstr ;

Everything work now.

Regards,
-Che Ma


> -----Original Message-----
> From: Joe Krahn
> Sent: Tuesday, March 20, 2001 9:16 AM
> To: Che Ma
> Subject: Re: CGI error in CNS
> 
> 
> This is a problem with a newer version of perl, not with
> the web server. Newer Perl seems a little more strict
> about syntax. All you need to do is remove parenthesis,
> for example:
> undef(a,b,c,d);
> to:
> undef a,b,c,d;
> 
> This occurs in several places in the CGI scripts.
> There might be other commands with "optional"
> parenthesis that need to be taken out.
> 
> Joe Krahn
> 
> Che Ma wrote:
> > 
> > But I still got the premature termination message as follow:
> > 
> > ---------------------------------------------------------
> > [Thu Mar 15 16:24:44 2001] [notice] Apache/1.3.12 (Unix)  (Red
> > Hat/Linux)
> > configured -- resuming normal operations
> > Too many arguments for undef operator at cns.lib line 69, 
> near "$i )"

---




More information about the X-plor mailing list