in reply to Pushing anon hash on to HoA structure giving Use of uninitialized value in hash element error using warnings
push( @{$bros->{$year}}, $info);
There are three variables there, and Perl is telling you that one of them is undefined. You should be able to tell which one by looking at the code, but if not some judiciously placed print() statements will help. (Hint: it's the one that only gets initialized in one branch of a conditional.)
|
|---|