Thanks a lot, this is so cool, how did I miss it

my code has reduced to

Dir["C:/pde/cvshome/trunk/OBox/**/src/core/**/*.java"].each{|f|
  file = f.gsub(/.*\/src\/core\//,"")
  file = file.gsub("/",".")
  file = file.gsub(/.java$/,"")
  puts file
}

Any way to shorten it further??

Damien Merenne wrote:
> On Tue, Nov 13, 2007 at 11:23:00PM +0900, Robert Klemme wrote:
>> >     if(File.directory?(full_name))
>> /tmp/uscreens/S-rklemme
>> /tmp/4052
>> /tmp/4052/sshlog
>> /tmp/4052/servicelog
>> /tmp/4052/runlog
>> /tmp/4052/keylog
>> /tmp/.X11-unix
>> /tmp/.X11-unix/X0
> 
> Or even
> 
> Dir["/tmp/**/*"]
> 
> see http://www.ruby-doc.org/core/classes/Dir.html#M002348
> 
> Regards,

-- 
Posted via http://www.ruby-forum.com/.