I'm trying to understand how this can be rewritten in more simplistic syntax for better understanding. Is hash2 being assigned as a value for key $a in hash1 then assigned as an array in @sub?
my $sub = $hash1{$a} = $hash2{$b}; push @$sub, $a;
In reply to Hash to Array assignment? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |