adm wrote:
> Is there any standard package to dump ruby data structures into a
> string/stream? which can be eval'd back in ruby script. something like
> perl's Data::Dumper?

In addition to the other suggestions of Marshal and YAML you can also
use 'pp' on data objects.

  irb(main):002:0> require 'pp'
  => true
  irb(main):003:0> pp x
  "foo"
  irb(main):007:0> pp y
  [1, nil, 3]
  irb(main):012:0> pp z
  {"three"=>3, "two"=>2, "one"=>1}

Bob