From: Jigar Gosar Date: 2007-11-14T00:16:37+09:00 Subject: Re: How do I exit from a block Thanks for clearing that up, I am thoroughly impressed with the ruby community, best in world. Even professional support is slower. I am a young convert from java :) Robert Klemme wrote: > 2007/11/13, Jigar Gosar : >> full_name = base_dir+"/"+file >> next file in the directory, break actually broke the foreach loop >> entirely, I just wanted something like continue :) >> please advise. > > That would be "next". Note that exiting from a block and switching to > the next iteration is something completely different. You asked for > exiting and thusly were correctly referred to "break". > > Cheers > > robert -- Posted via http://www.ruby-forum.com/.