in reply to Re: read hash table from a subroutine or retrieve previously stored hash table from a file
in thread read hash table from a subroutine or retrieve previously stored hash table from a file

Thanks Kenosis. I've started working on my logic. I tried with you code, but it didnt parse keys and value correctly. Insted got output like:

Output:

is mixed with column1 and column2 data.

$VAR1 = { 'group4' => [ 'group2','name7', 'name4','group7', ], 'group5' => [ 'name8' ] };
  • Comment on Re^2: read hash table from a subroutine or retrieve previously stored hash table from a file
  • Download Code

Replies are listed 'Best First'.
Re^3: read hash table from a subroutine or retrieve previously stored hash table from a file
by Kenosis (Priest) on Nov 19, 2013 at 22:26 UTC

    Then, somehow, entires from column 2 (the groups' column) became keys in your 'hash table.' You need to discover how this happened, since the groupByCol2 subroutine merely uses your 'hash table's' values as keys and associates them with references to anonymous arrays which contain name entires.