silent11 has asked for the wisdom of the Perl Monks concerning the following question:
produces the following error under "use strict":use strict; use CGI::Pretty qw(:standard *table); use CGI::Carp 'fatalsToBrowser'; ..... sub slurp { open(FILE,"<params.inc") || die $! ; restore_parameters(FILE); close(FILE); }
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.Bareword "FILE" not allowed while "strict subs" in use at D:/SITES/xyz123/cgi-bin/rows.cgi line 48.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Bareword "FILE" not allowed while "strict subs"
by BUU (Prior) on Oct 08, 2004 at 20:07 UTC | |
Re: Bareword "FILE" not allowed while "strict subs"
by ikegami (Patriarch) on Oct 08, 2004 at 20:01 UTC | |
Re: Bareword "FILE" not allowed while "strict subs"
by shenme (Priest) on Oct 08, 2004 at 21:47 UTC | |
by revdiablo (Prior) on Oct 08, 2004 at 22:59 UTC | |
Re: Bareword "FILE" not allowed while "strict subs"
by bpphillips (Friar) on Oct 08, 2004 at 20:07 UTC | |
Re: Bareword "FILE" not allowed while "strict subs"
by TedPride (Priest) on Oct 08, 2004 at 21:18 UTC | |
Re: Bareword "FILE" not allowed while "strict subs"
by Anonymous Monk on Oct 11, 2007 at 12:26 UTC | |
Re: Bareword "FILE" not allowed while "strict subs"
by Anonymous Monk on Oct 11, 2007 at 12:30 UTC |