Hello, Guy.

I used 'marshal' => true as you suggested.  But it doesn't seem
to work, giving me the message: 

`load': marshal data too short (ArgumentError)

However, explicit Marshal works fine.  Is this a feature that
requires a different bdb than what I have?:  bdb 0.2.5 and Ruby
1.6.5

ts wrote:
> 
> >>>>> "T" == Tobias DiPasquale <anany / ece.villanova.edu> writes:
> 
> T> relying on Berkeley DB. (it uses Marshal instead of Berkeley DB) You can
> 
>  bdb use Marshal, or any object which define #load and #dump.
> 
>  Here the example that I've given in ruby-fr
> 
> pigeon% cat b.rb
> #!/usr/bin/ruby
> require 'bdb'
> 
> dico = BDB::Btree.new "dico", nil, "a", "marshal" => true
> dico["coucou"] = ["foo", "bar", "truc", "machin"]
> dico["coucou"].push("bla")
> dico.each {|k, v| p "#{k} -- #{v.join(' * ')}"}
> pigeon%
> 
> pigeon% b.rb
> "coucou -- foo * bar * truc * machin * bla"
> pigeon%
> 
> Guy Decoux

-- 
"It requires wisdom to understand wisdom:
 the music is nothing if the audience is deaf."
 - Walter Lippman