From: Chinna Karuppan Date: 2008-03-14T10:40:52+09:00 Subject: Re: << : can some body check this code?? I think I found an answer not sure if it is normal way to do things.... weeks << week.clone instead of week... Looking forward for comments... THnks > weeks << week > p week,weeks > week.clear > > end > end > weeks << week if week.length != 0 > weeks > end > > p cal_week(4) > > I think it is the problem of week still remembering the values.... > THnks > CHinna -- Posted via http://www.ruby-forum.com/.