Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Preventing Use of uninitialized value

by soonix (Canon)
on Sep 20, 2021 at 20:07 UTC ( #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? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2021-10-25 04:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?