
parsalog
New User
Feb 6, 2010, 4:20 PM
Post #1 of 3
(601 views)
|
|
Berkeley DB dynamic reffernece?
|
Can't Post
|
|
Greetings my first post here. I have about 20 Berkley db's that I have created, all hashes , and all named alphabetically %A %B %C %D . I want to use a foreach loop to pull from a array of the db names my @table = qw(A B C D); and I want to do an insert, into the dbs inside the loop dynamically based on the array. foreach $db(@table) { .... $$db{"$key"} = "$value" ; # <--- where I am stuck above syntax does not work tho, can anyone help me with the right way to do this, specifically reference a BDB hash dynamically? thanks in advanced
|