rtilley a ˝─rit :
> I like the way in which p prints out the contents of an array. It's 
> easy for me to read. Is it possible to make a method return p array? 
> Or is there a better way to do this?
>
> def info
>    #create an array
>    p array
>    return p array
> end
"p" just uses the "inspect" method. Thus you can do that :

def info
 # create an array
  p array
  array.inspect
end

Pierre