From: Peter Bailey Date: 2006-06-23T23:55:08+09:00 Subject: Warning message about "initialized constant" This is part of a script I use that simply ftps a bunch of files over to a UNIX server at my company. It does work, but, I keep getting a warning message from RUBY about "rb:20:warning: already initialized constant BWDFile". The line 20 it's referring to is my line 5 below. Thanks for any help. ----------------------------------------------------------------------------------- ... 1 ftp = Net::FTP.open('quark.bna.com') do |ftp| 2 ftp.login('xxxxxx','xxxxxxxx') 3 ftp.chdir('/xxxxx/xxx/xxd/xxxx') 4 BWDFiles=Dir.glob("*.{pdf,gif}") 5 BWDFiles.each do |BWDFile| 6 ftp.putbinaryfile(BWDFile) 7 FileUtils.rm(BWDFile) 8 end 9 end -- Posted via http://www.ruby-forum.com/.