in reply to Re^2: Creating members of hash of hashes parallelly
in thread Creating members of hash of hashes parallelly

HoHoH solution has the drawback that the interpreter generates an initialization error during initialization of indices.
How so? Can you show us what you mean?
  • Comment on Re^3: Creating members of hash of hashes parallelly

Replies are listed 'Best First'.
Re^4: Creating members of hash of hashes parallelly
by utku (Acolyte) on Jan 07, 2007 at 13:04 UTC
    Sorry, it was a mistake of my code.

    For HoHoH solution, if I use my own dump routine instead of Dumper:

    foreach $path ( keys %db_hash ) { print "List for $path...\n"; foreach $index ( keys %{ $db_hash{$path} } ) { print "END: ", $db_hash{$path}{$index}{END}, "\n"; } }
    then following comes to stdout:
    Use of uninitialized value in print at ./utk.pl line 66, <FH> line 246 +99. Use of uninitialized value in print at ./utk.pl line 66, <FH> line 246 +99.
    line 66 is the line of "print END" routine. In this case,
    $db_hash{$path}{$index}{END}
    tries to access
    $db_hash{$path}{'index'}{END}
    ... which does not exist anyway. It was a mistake that I did not use the Dumper.