From: Hamza Haiken Date: 2008-12-05T18:20:36+09:00 Subject: Array#shift weird problem Hi Can someone explain to me why is this happening ? >> matrix1 = ["One","Two","Three"] => ["One", "Two", "Three"] >> matrix2 = matrix1 => ["One", "Two", "Three"] >> matrix2.shift => "One" >> matrix2 => ["Two", "Three"] >> matrix1 => ["Two", "Three"] According to my logic, when I do matrix2.shift, it should have nothing to do with matrix1. Why's this one shifted as well ? -- Posted via http://www.ruby-forum.com/.