Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Annoying 'Use of uninitialized value in concatenation' warning

by sundialsvc4 (Abbot)
on Oct 26, 2011 at 02:07 UTC ( #933770=note: print w/ replies, xml ) Need Help??


in reply to Re: Annoying 'Use of uninitialized value in concatenation' warning
in thread Annoying 'Use of uninitialized value in concatenation' warning

I also agree ... completely.

“Warnings are your friends,” because the only party that can realistically tell you what a computer program is doing wrong is ... the computer itself.   Nevertheless you may decide that there are specific places in your program where an innocuous condition such as this one is causing a boatload of unwanted error-messages, e.g. in an Apache error log, and therefore you justifiably want to stamp the message out because it’s doing more harm than good.   In those cases, Perl does allow you to do that.   And, as BrowserUK wisely suggests, when you elect to do such a thing, you ought to do so in a very targeted way.   Suppress only the specific warnings you need to suppress, and do so only within a limited section of the code.   (I further advise that you add detailed comments surrounding the area:   “exactly what are you intending to suppress, and exactly why.”   Copying a representative handful of the actual message-texts and pasting them right into the comment-block is a pretty good idea to me, ’cuz you will forget these things.)

Fav’d.


Comment on Re^2: Annoying 'Use of uninitialized value in concatenation' warning

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://933770]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2014-12-19 03:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (70 votes), past polls