Re: warning: already initialized constant TmpCert_as_text
- From: Tim Hunter <rmagick@xxxxxxxxx>
- Date: Fri, 18 Jan 2008 14:06:54 -0500
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/.
.
- Follow-Ups:
- Re: warning: already initialized constant TmpCert_as_text
- From: Heinrich Piard
- Re: warning: already initialized constant TmpCert_as_text
- References:
- warning: already initialized constant TmpCert_as_text
- From: Heinrich Piard
- warning: already initialized constant TmpCert_as_text
- Prev by Date: Re: How to manipulate a Hash object to String
- Next by Date: Re: warning: already initialized constant TmpCert_as_text
- Previous by thread: warning: already initialized constant TmpCert_as_text
- Next by thread: Re: warning: already initialized constant TmpCert_as_text
- Index(es):
Relevant Pages
|