The following code:
use strict;
use CGI::Pretty qw(:standard *table);
use CGI::Carp 'fatalsToBrowser';
.....
sub slurp {
open(FILE,"<params.inc") || die $! ;
restore_parameters(FILE);
close(FILE);
}
produces the following error under "use strict":
Bareword "FILE" not allowed while "strict subs" in
use at D:/SITES/xyz123/cgi-bin/rows.cgi line 48.
Any idea why this is happening? restore_parameters() is coming from the CGI module and I'm using it
just as documented.
i think... Everything works fine when I remove "use strict" but I just can't get myself to do that.