Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Is this code correct

by AnomalousMonk (Archbishop)
on Mar 23, 2021 at 04:48 UTC ( [id://11130178]=note: print w/replies, xml ) Need Help??


in reply to Re: Is this code correct
in thread Is this code correct

... a way to turn off this particular error message from warnings, while leaving other feedback functional.
    no warnings 'uninitialized';
See warnings or, in older Perl versions, perllexwarn.

... have to define every possible value in a hash before it might possibly be assigned one--which is where I usually get these "warnings."
I don't understand this statement. Can you give an example of a situation in which you cannot assign a value to a hash key without producing an 'uninitialized' message unless the key already exists (with another value, of course). This is the situation that is brought to my mind by the quoted statement. (Please see SSCCE.)


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-29 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found