Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Creating members of hash of hashes parallelly

by utku (Acolyte)
on Jan 07, 2007 at 03:37 UTC ( [id://593365]=note: print w/replies, xml ) Need Help??


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

Thank you very much folks, you have enlightened the points I could not figure out.

Both solutions (HoAoH by robotics and japhy; HoHoH by liverpole) worked.
HoHoH solution has the drawback that the interpreter generates an initialization error during initialization of indices.

Thanks again for your ultra-fast answers!
  • Comment on Re^2: Creating members of hash of hashes parallelly

Replies are listed 'Best First'.
Re^3: Creating members of hash of hashes parallelly
by ysth (Canon) on Jan 07, 2007 at 06:16 UTC
    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?
      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://593365]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2025-07-14 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.