Re: warning: already initialized constant TmpCert_as_text
- From: Heinrich Piard <linux@xxxxxxxx>
- Date: Fri, 18 Jan 2008 14:10:03 -0500
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/.
.
- References:
- warning: already initialized constant TmpCert_as_text
- From: Heinrich Piard
- Re: warning: already initialized constant TmpCert_as_text
- From: Tim Hunter
- warning: already initialized constant TmpCert_as_text
- Prev by Date: Re: warning: already initialized constant TmpCert_as_text
- Next by Date: Re: passing method references in python & ruby
- Previous by thread: Re: warning: already initialized constant TmpCert_as_text
- Next by thread: How to manipulate a Hash object to String
- Index(es):
Relevant Pages
|