Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Creating members of hash of hashes parallelly

by ysth (Canon)
on Jan 07, 2007 at 06:16 UTC ( [id://593370]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-05-26 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found