From: Tim Hunter Date: 2008-01-19T04:06:54+09:00 Subject: Re: warning: already initialized constant TmpCert_as_text Heinrich Piard wrote: > Hi all, > > I use this in a 'loop do': > > validationcheck = OpenSSL::X509::Certificate > TmpCert_as_text = validationcheck.new(File.read("certs.pem")).to_text > > and I get this warning message: > > warning: already initialized constant TmpCert_as_text > > > How can I get rid of it? > > > bye and thanks in advance > Henry Ruby treats a variable name that starts with an uppercase letter as a constant. Use tmpcert_as_text instead. -- Posted via http://www.ruby-forum.com/.