From: John Park Date: 2008-12-28T20:20:03+09:00 Subject: Re: New to Ruby: copying arrays? Stefano Crocco wrote: > You can use Marshal.dump and Marshal.load: > > a = [["a", "b"],["c", "d"]] > b = Marshal.load(Marshal.dump(a)) > a[0][0].upcase! > puts a[0][0] #=> A > puts b[0][0] #=> a > Just experimented with it in irb. Awesome! Exactly what I was hoping for! Thanks for the super-quick response! :) -- Posted via http://www.ruby-forum.com/.