in reply to Question regarding DB_File
I don't know what you mean by "display in the order"; it would depend on how you're doing the displaying. Do you mean that keys(%myDB) will return the order of insertion?
If you're interested in the order of insertion, you may want to look at the DB_RECNO type instead. The BTree will order by key value.
Look at Sleepycat's documentation on BerkeleyDB for details on how this all works. And look into using the BerkeleyDB module instead of DB_File if you want finer-grained control over ordering, duplicate keys, locking, etc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Question regarding DB_File
by Stamp_Guy (Monk) on Jul 07, 2001 at 01:22 UTC | |
by no_slogan (Deacon) on Jul 07, 2001 at 01:53 UTC | |
by Stamp_Guy (Monk) on Jul 07, 2001 at 05:25 UTC |