You don't need the exists test; perl will autovivify to DWYM, so the first branch of your test actually works for both conditions. And if you want to use "indirect" (arrow?) notation, then:

push @{$HashRef->{$ItemID}}, $DataSource;
BTW, I could be all wrong on this, but I think that the term "indirect notation" is typically used to refer to stuff like
my $obj = new Thingie;
as opposed to
my $obj = Thingie->new();

the lowliest monk


In reply to Re: Complex Data Structure Suggestions Wanted by tlm
in thread Complex Data Structure Suggestions Wanted by Ninthwave

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":