Robert Klemme wrote: > 2009/10/26 salai <sayakyi / gmail.com>: >> Dear Rubyist, >> >> I want to count array list [1,2,3,[4],5] ---> # 5 leaves Out of sheer curiosity.. [1,2,3,[4],5].size # --> 5 Not what you need? -- Posted via http://www.ruby-forum.com/.