From: matz@... (Yukihiro Matsumoto) Date: 2004-01-23T00:15:53+09:00 Subject: Re: Marshal format filter? 1.6.8 to 1.8.1 Hi, In message "Marshal format filter? 1.6.8 to 1.8.1" on 04/01/22, "Berger, Daniel" writes: |I'm in a situation where I may want to have a 1.8.1 client communicate |with a 1.6.8 server, where the server is sending back marshal'd data. |Is there a way to "filter" a 1.6.8 format into a 1.8.1 format, and |vice-versa? Simplest filter (should run on 1.8.1): Marshal.dump(Marshal.load(STDIN), STDOUT) Binary hack: open(file, "r+"){|f| f.rewind f.putc Marshal::MAJOR_VERSION f.putc Marshal::MINOR_VERSION } I recommend you not to convert downward. matz.