I get the following error when i execute my code:
>>c:/ruby/lib/ruby/1.8/Find.rb:39:in `find': no block given (LocalJumpError)

A snippet of my code is as follows:

  if $file_exception[i] != nil
       src1 = $file_exception[i].inject(Find.find(src)) {|result,
ex|result.reject{|x| File.basename(x) =~ Regexp.new(ex,
Regexp::IGNORECASE)}}
  else
        src1 = $source
   end

      i = i + 1

       Find.find(src1).each do |file|
      matchExp = excep_yyyymmdd.match(File.basename(file))
      matchExp1 = excep_ddmmyyyy.match(File.basename(file))

Is there something wrong with my code at all? (maybe i overlooked
something very simple)
-- 
Posted via http://www.ruby-forum.com/.