Thanks,

but what is the reason for this problem?
The same is, e.g. when you use the "inspect" or the "to_s" message of an
object.

--
Yalin

"Simon Strandgaard" <neoneye / adslhome.dk> schrieb im Newsbeitrag
news:pan.2004.03.05.15.05.13.627630 / adslhome.dk...
> On Fri, 05 Mar 2004 15:42:12 +0100, Yalin wrote:
> > I have installed ruby with "ruby181-11.exe" on Windows XP and wanted to
try
> > some code samples from the Ruby Programmers Guide, but without success.
If I
> > run following code, I don't get any output on console:
> [snip]
>
> welcome to Ruby  ;-)
>
>
> try
>
> a = [1, 'cat', 3.14]
> p a[0]
> a[2] = nil
> p a
>
>
> on my machine (executing 'ruby example.rb') it outputs
>
> 1
> [1, "cat", nil]
>
>
> --
> Simon Strandgaard