Hi Monks,
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.
open(OUT,">>$sql_file");
print OUT localtime().' ^ '.$pid.' ^ '.$_[0]."\n";
close(OUT);
It looks open before I print and closed after to me.
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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.