wolis has asked for the wisdom of the Perl Monks concerning the following question:
While running a script on a newly setup server I discovered that the scripts refused to run without the -w switch.
A good opportunity to clean up my old code I thought.
Then I discovered some unusual warnings:
1) Why does it warn: print() on closed filehandle OUT at wm-sql.pl line 123.
It looks open before I print and closed after to me.open(OUT,">>$sql_file"); print OUT localtime().' ^ '.$pid.' ^ '.$_[0]."\n"; close(OUT);
2) Name "main::portalserver" used only once: possible typo at..
I define variables in one bit of code then use them in another 'required' file in a rather obscure but functional way.
Can I hide these warnings? (do I just have to do some dummy work on each to fool it or is there a smarter way?)
Thanks,
___ /\__\ "What is the world coming to?" \/__/ www.wolispace.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print() on closed filehandle..
by Roger (Parson) on Feb 03, 2004 at 04:49 UTC | |
by wolis (Scribe) on Feb 03, 2004 at 05:39 UTC | |
|
Re: print() on closed filehandle..
by davido (Cardinal) on Feb 03, 2004 at 05:28 UTC | |
|
Re: print() on closed filehandle..
by antirice (Priest) on Feb 03, 2004 at 05:44 UTC | |
|
Re: print() on closed filehandle..
by ysth (Canon) on Feb 03, 2004 at 16:48 UTC | |
by wolis (Scribe) on Feb 05, 2004 at 05:00 UTC | |
by ysth (Canon) on Feb 05, 2004 at 05:50 UTC |