in reply to Re: Array comparison for 3 arrays
in thread Array comparison for 3 arrays
Do not use map in void context. Although it probably doesn't generate the output list in current versions of Perl, it does send wrong signals about the intent of the code. Use for as a statement modifier instead:
$result->{$_}{$array_name} = 1 for @{$arrays->{$array_name}}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Array comparison for 3 arrays
by 7stud (Deacon) on Apr 14, 2010 at 07:23 UTC | |
by GrandFather (Saint) on Apr 14, 2010 at 09:16 UTC |