in reply to Re^3: push an array into Hash of Array
in thread push an array into Hash of Array

But are you really 'storing' the arrays in that hash...or just the a reference to those arrays?

If I undef array1 and array2..will I still have values in my hash?

Or if I tie the Hash to a DB file. Will the file contain the contents of each of the arrays...or just the array references?

Replies are listed 'Best First'.
Re^5: push an array into Hash of Array
by choroba (Cardinal) on Oct 26, 2011 at 07:18 UTC
    Only scalars can be hash values (see perlref). Therefore, you cannot "store an array" into a hash. You can only store the reference.