Ruby uses "puts", not "print".  "p" is short for "puts".

Try this:

puts ary1

You'll get the same results as:

p ary1


On Thu, 2010-09-02 at 14:16 -0500, Abder-Rahman Ali wrote:
> I wrote the following scripts from section (2) here:
> http://ruby.gfd-dennou.org/tutorial/gokuraku/index-e.html
> 
> require "rubygems" # Not in the example
> require "narray"
> ary1 = NArray.sfloat(3,4)
> 
> When I tried to display the result using
> 
> print ary1
> 
> It did NOT show anything.
> 
> While when I used:
> 
> p ary1
> 
> I got the result displayed?
> 
> Why is that?
> 
> Thanks.