From: Patrick Doyle Date: 2008-08-25T20:34:31+09:00 Subject: Re: indices of non nil elements in an array Thanks. That looks workable. What I could also do (I decided in the mean time) is to change my array into a hash whose keys happen to be integers. That way I could look at things like a.size and a.keys.sort. --wpd