--- Mauricio FernáÏdez <batsman.geo / yahoo.com> wrote: > On Thu, Jun 12, 2003 at 11:06:55AM +0900, Michael Campbell wrote: > > > 3) any type of object can be used as a key in a Ruby hash (Perl > can > > > only use strings as keys). > > > > I don't think this is accurate. This works perfectly fine in > perl: > > > > $hash{1.0} = "foo"; > > keys %hash # => "1" or 1, depending on context. > > That because Perl mixes strings and numbers, isn't it? > But is the following possible? Yes, given that perl's OO is wonky. The object reference is stringified before use, as someone else mentioned. The point is that things other than strings can be used. __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com