From: Heinrich Piard Date: 2008-01-19T04:10:03+09:00 Subject: Re: warning: already initialized constant TmpCert_as_text Tim Hunter wrote: > 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. Life is sometimes that easy - but you don't recognize it :-) Thx. Perfect!!! bye Henry -- Posted via http://www.ruby-forum.com/.