in reply to pushing into a tie'd hash

The tied hash will only do its magic if you do an operation that calls one of the magic functions. You're not doing any kind of hash-store, you're just operating on values that are referenced. This should (IMO) work:
foreach $val (@{$memrevmap{$key}}) { print "pushing into $key, $val\n"; $revmap{$key}=[@{$revmap{$key}}, $val]; }

Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^2: pushing into a tie'd hash
by mast (Novice) on Oct 24, 2005 at 19:28 UTC
    Interesting, but running it appears to fail. :( I've tried a few combinations including the [] square braces, to no effect. For some reason that I'm not aware of, the tie'd hash seems to only accept a single value, and not an array. Each additional push, or assignment, seems to overwrite the previous value.

    Something tells me I'm bumping into a limitation of the DB_File module. :(

      From DB_File's docs:

      "How do I store complex data structures with DB_File? Although DB_File cannot do this directly... [suggestion for a layer on top of DB_File]."

      May I instead recommend DBM::Deep?