in reply to Re^3: creating defined references to arrays of size zero
in thread creating defined references to arrays of size zero

This is precisely where tlm's suggestion(++) comes in handy:
You could do:
my $array = $hash->{$key} ||=[];
This would initialize the hash value to an empty array ref, when necessary.

     "Income tax returns are the most imaginative fiction being written today." -- Herman Wouk