Thank u all, Brian & Daniel!

-----Original Message-----
From: Daniel Carrera [mailto:dcarrera / math.umd.edu]
Sent: Friday, March 28, 2003 5:02 PM
To: ruby-talk / ruby-lang.org
Subject: Re: Newbie question:Does Ruby have the structure of hash's array like Perl does?


Thanks Brian.  One thing I like about Ruby is that I really do learn 
something new every day.

On Fri, Mar 28, 2003 at 05:58:32PM +0900, Brian Candler wrote:
> On Fri, Mar 28, 2003 at 08:49:57AM +0000, Brian Candler wrote:
> > $ ruby -e 'a=["jim","bob"]; $,="-"; puts a.join'
> > jim-bob
> 
> A closer example to the Perl would use string interpolation in Ruby:
> 
> $ ruby -e 'a=["jim","bob"]; $,="-"; puts "hello #{a}"'
> hello jim-bob
> 

-- 
Daniel Carrera
Graduate Teaching Assistant.  Math Dept.
University of Maryland.  (301) 405-5137
--
depone: depone (di-POHN) verb tr., intr.
   To declare under oath.