in reply to Re: pushing into a tie'd hash
in thread pushing into a tie'd hash

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. :(

Replies are listed 'Best First'.
Re^3: pushing into a tie'd hash
by jgallagher (Pilgrim) on Oct 25, 2005 at 03:42 UTC

    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?