in reply to Re: Possible useless use of map
in thread Possible useless use of map
Actually, I'm a bit surprised that I do get the same warning with a slightly modified variant:
$ perl -Mstrict -Mwarnings -MData::Dumper -le 'my $hr; $hr->{stuff}{fo +o} for 1; print Dumper $hr' Useless use of hash element in void context at -e line 1. $VAR1 = { 'stuff' => {} };
As it autovivifies, it's not "useless", strictly speaking... Also, what about (intended) side effects with tied hashes?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Possible useless use of map
by ikegami (Patriarch) on Mar 18, 2010 at 20:40 UTC | |
|
Re^3: Possible useless use of map
by Anonymous Monk on Mar 18, 2010 at 10:31 UTC | |
by almut (Canon) on Mar 18, 2010 at 10:39 UTC | |
by Anonymous Monk on Mar 18, 2010 at 10:57 UTC | |
by almut (Canon) on Mar 18, 2010 at 11:23 UTC | |
by Anonymous Monk on Mar 18, 2010 at 11:59 UTC |