This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_extPart_001_01C26960.AB71E420
Content-Type: text/plain; charset="iso-8859-1"

Silly me!  I think I was trying it with local variables.  Read Mark!

> -----Original Message-----
> From: ts [mailto:decoux / moulon.inra.fr]
> Sent: Tuesday, October 01, 2002 10:33 AM
> To: ruby-talk / ruby-lang.org
> Cc: ruby-talk / ruby-lang.org
> Subject: Re: puts "#{expression}" braces always needed?
> 
> 
> >>>>> "V" Volkmann, Mark <Mark.Volkmann / AGEDWARDS.com> writes:
> 
> V> The pickaxe book says (on page 51) that if the expression 
> is a global, class
> V> or instance variable then the braces aren't required.  
> Omitting them doesn't
> V> seem to work for me.  Is the book wrong?
> 
>  it seems to work for me
> 
> pigeon% ruby -e '$a  @a  a  2; p "#$a #@@a #@a"'
> "12 12 12"
> pigeon% 
> 
> 
>  Can you give an example ?


***********************************************************************************
WARNING:  All e-mail sent to and from this address will be received or
otherwise recorded by the A.G. Edwards corporate e-mail system and is
subject to archival, monitoring or review by, and/or disclosure to,
someone other than the recipient.
************************************************************************************

------_extPart_001_01C26960.AB71E420
Content-Type: text/html; charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV
ontent-Type" CONTENText/html; charseto-8859-1"> <META NAMEenerator" CONTENTS Exchange Server version 5.5.2653.12"> <TITLE>RE: puts &quot;#{expression}&quot; braces always needed?</TITLE> </HEAD> <BODY> <P><FONT SIZE Silly me!&nbsp; I think I was trying it with local variables.&nbsp; Read Mark!</FONT> </P> <P><FONT SIZE &gt; -----Original Message-----</FONT> <BR><FONT SIZE &gt; From: ts [<A HREFailto:decoux / moulon.inra.fr">mailto:decoux / moulon.inra.fr</A>]</FONT> <BR><FONT SIZE &gt; Sent: Tuesday, October 01, 2002 10:33 AM</FONT> <BR><FONT SIZE &gt; To: ruby-talk / ruby-lang.org</FONT> <BR><FONT SIZE &gt; Cc: ruby-talk / ruby-lang.org</FONT> <BR><FONT SIZE &gt; Subject: Re: puts &quot;#{expression}&quot; braces always needed?</FONT> <BR><FONT SIZE &gt; </FONT> <BR><FONT SIZE &gt; </FONT> <BR><FONT SIZE &gt; &gt;&gt;&gt;&gt;&gt; &quot;V&quot; Volkmann, Mark &lt;Mark.Volkmann / AGEDWARDS.com&gt; writes:</FONT> <BR><FONT SIZE &gt; </FONT> <BR><FONT SIZE &gt; V&gt; The pickaxe book says (on page 51) that if the expression </FONT> <BR><FONT SIZE &gt; is a global, class</FONT> <BR><FONT SIZE &gt; V&gt; or instance variable then the braces aren't required.&nbsp; </FONT> <BR><FONT SIZE &gt; Omitting them doesn't</FONT> <BR><FONT SIZE &gt; V&gt; seem to work for me.&nbsp; Is the book wrong?</FONT> <BR><FONT SIZE &gt; </FONT> <BR><FONT SIZE &gt;&nbsp; it seems to work for me</FONT> <BR><FONT SIZE &gt; </FONT> <BR><FONT SIZE &gt; pigeon% ruby -e '$a @a a 2; p &quot;#$a #@@a #@a&quot;'</FONT> <BR><FONT SIZE &gt; &quot;12 12 12&quot;</FONT> <BR><FONT SIZE &gt; pigeon% </FONT> <BR><FONT SIZE &gt; </FONT> <BR><FONT SIZE &gt; </FONT> <BR><FONT SIZE &gt;&nbsp; Can you give an example ?</FONT> </P> <CODE><FONT SIZE0<BR> <BR> ***********************************************************************************<BR> WARNING: All e-mail sent to and from this address will be received or<BR> otherwise recorded by the A.G. Edwards corporate e-mail system and is<BR> subject to archival, monitoring or review by, and/or disclosure to,<BR> someone other than the recipient.<BR> ************************************************************************************<BR> </FONT></CODE></BODY> </HTML> ------_extPart_001_01C26960.AB71E420--