From: Hugh Sasse Staff Elec Eng Date: 2000-04-07T14:55:48+01:00 Subject: [ruby-talk:02375] Marshal: Want string out, but want depth specified? @encoded = [Marshal.dump(@decoded, , depth)].pack("m") gives a syntax error, @encoded = [Marshal.dump(@decoded, nil, depth)].pack("m") doesn't work, the second param needs to be type IO @encoded = [Marshal.dump(@decoded, depth)].pack("m") doesn't work, the second param needs to be type IO How do I miss out the second parameter to get a string, and yet specify the depth? Hugh hgs@dmu.ac.uk