Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Annoying warnings...

by Zaxo (Archbishop)
on Jul 15, 2005 at 20:19 UTC ( #475350=note: print w/replies, xml ) Need Help??


in reply to Annoying warnings...

I think that the solution you imply of turning them off locally is the preferred one. Leave warnings on during development, and when you are sure you want to allow $foo to be undefined,

{ no warnings 'uninitialized'; # edit - corrected tag print "Say something about $foo.\n"; }
That is a pain, as you say, but it makes you ask whether you really need the behavior you're warned of.

Most warnings (not all!) represent some kind of useless behavior in a program. Cleaning them up nearly always improves the code.

After Compline,
Zaxo

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2021-03-04 04:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (98 votes). Check out past polls.

    Notices?