DBM files portable?

Question: I thought that files created by the dbm library
were pretty portable?

My app created a .db file (Ruby 1.8.2, Red Hat FC1) and I
gave it to a couple of people.

Tried it on OSX and it didn't seem to work. Not a gigantic
surprise perhaps.

Tried it on Gentoo also and it still didn't seem to work. :confused:
This surprised me a little more.

Is this sensitive to OS versions, Ruby versions, or what?

Thanks,
Hal

Perhaps architecture? I am not sure, but it could be an endianess
problem...

路路路

On Tue, 2004-09-21 at 20:48, Hal Fulton wrote:

Is this sensitive to OS versions, Ruby versions, or what?

--
_="puts'_='+_.inspect+';'+_";puts'_='+_.inspect+';'+_

On second reading, perhaps dbm versions differ. You could
$ file data.db
and look on the result and compare it to
$ ldd $PATH/dbm.so

file seems to show endianess, too.

路路路

On 2004-09-22 03:48:32 +0900, Hal Fulton wrote:

Is this sensitive to OS versions, Ruby versions, or what?

--
lambda { |c| lambda { |f| f[f] } [ lambda { |f| c[lambda { |x| f[f] } ] }] }