Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Is this code correct

by Polyglot (Friar)
on Mar 23, 2021 at 03:19 UTC ( #11130171=note: print w/replies, xml ) Need Help??


in reply to Is this code correct

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^2: Is this code correct
by AnomalousMonk (Bishop) on Mar 23, 2021 at 04:48 UTC

    ... 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:  <%-{-{-{-<

    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://11130171]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2021-09-28 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?