in reply to Function composing a hash of arrays.
You're very close. jettero has already mentioned that you need to use the appropriate sigil; '$' instead of '%' for your hash.
You also are expecting a reference to a list in your subroutine hashOfArraysRef, but you have an extra level of indirection here:
&hashOfArraysRef(\$distri{$probExpr[0]});
because $distri{$probExpr[0]} is already holding an array reference. If you change it to this:
&hashOfArraysRef($distri{$probExpr[0]});
you should find that it works closer to the way you need.
|
|---|