in reply to Function composing a hash of arrays.
In perl, that leading type indicator indicates the context. You want $distri{$_} = []; since you're assigning a scalar
-Paul