Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Is this code correct

by Polyglot (Chaplain)
on Mar 23, 2021 at 03:19 UTC ( [id://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 (Archbishop) 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?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-03-28 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found