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

Re: Preventing Use of uninitialized value

by soonix (Canon)
on Sep 20, 2021 at 20:07 UTC ( [id://11136894]=note: print w/replies, xml ) Need Help??


in reply to Preventing Use of uninitialized value

Seeing the subject line "Preventing Use of uninitialized value", my first thought was
{ use warnings FATAL => qw(uninitialized); ... }
which would ultimately prevent uninitialized values to be used :-P

OTOH, that is not what you want, since you make clear you just don't want to be warned about it. The (short term) solution for you is simply

{ no warnings "uninitialized"; ... }
On the third hand, of course, the best solution would be to find out, why these values are uninitialized and to do something about that… (Update: as already suggested by pryrt)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-19 08:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found