in reply to Scalar followed by parenthetical...
Not a bug. As $_{A} (did you mean $_->{A} perchance?), is undef, all hash keys 'B' that have a non-true value are (re)set to undef:
C:\test>junk Use of uninitialized value $_{"A"} in concatenation (.) or string at C +:\test\junk.pl line 13. $_{A} ::=> $VAR1 = [ { 'A' => 1, 'B' => undef }, { 'A' => 2, 'B' => 2 }, { 'A' => 2, 'B' => undef } ];
Might have expected a warning though?
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Scalar followed by parenthetical...
by LanX (Saint) on May 19, 2013 at 02:56 UTC | |
by BrowserUk (Patriarch) on May 19, 2013 at 03:58 UTC | |
by Anonymous Monk on May 19, 2013 at 05:39 UTC | |
by BrowserUk (Patriarch) on May 19, 2013 at 06:18 UTC | |
by ikegami (Patriarch) on May 19, 2013 at 07:21 UTC | |
|
In Section
Seekers of Perl Wisdom