http://qs321.pair.com?node_id=11130171


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.