> That works as I expect it to. Is it the same for you? Yes it is ok but I'm in need to create that menu dynamically. I've done already menu with 'static' menu items and that works. Now I have problem,as you can see, with dynamic one. > Anyway, I recommend making sure that variable holds what you think it > does. Yes I'm sure, by now it is included from other source file and looks like that: $ip = [ ["tvp1", "238.269.2.1"], ["tvp2", "219.249.2.2"], ["tvp info", "219.269.2.3"], ["polsat", "219.269.2.4"], blahblah etc. one hundred more of them...In the future it will be loaded from txt file in runtime, but now if dynamic cration of menu items not work it makes no sense. > aa = a.find { |line| line.include? "Average" } # for Ruby 1.8 >or: > aa = a.lines.find { |line| line.include? "Average" } # for Ruby 1.9 Very nice :), thank you. I'm only seasonal coder so I'm using syntax which is familiar to me :) I'm customer support who wants to make my own life slighly easier. -- Posted via http://www.ruby-forum.com/.