Thx!
Perl's $" just like OFS in awk which is the output field separator,i.e. that is printed between fields.


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


> Something like below doesn't work:
>    h=Hash.new
>    h["a"][0]="something"
>    h["a"][1]="another thing"

h=Hash.new
h["a"] = Array.new
h["a"][0]="something"
h["a"][1]="another thing"

Ruby doesn't quite have Perl's "implicit declaration".

> and what's the equivalence of Perl's $"?

What does Perl's $" have?

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