There is no need to be excessively verbose when expounding on the subject at hand. It helps if you get the syntax right in your example code too.
for my $number (@{$arrays->{$array_name}}) { $result->{$number}{$array_name} = 1; }
The @{...} is required to dereference the array reference which is the hash value. Without the dereference syntax @array is assigned (or the loop iterates over) a single element which is the reference to the array.
In reply to Re^4: Array comparison for 3 arrays
by GrandFather
in thread Array comparison for 3 arrays
by terrylau
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |