From: ts Date: 2002-11-19T17:43:50+09:00 Subject: Re: Mysterious "no block given" error for an iterator >>>>> "B" == Brian Takita writes: B> def replace_text(dir_name = '.') [...] B> replace_text() Well, you have a recursive method. For the first call the method has the block but when you recurse you call it without the block. This is why ruby give an error. You must "propagate" the block, something like B> def replace_text(dir_name = '.', &block) [...] B> replace_text(&block) Guy Decoux