RE: two-way hashes

2001-08-02 Thread Hong Zhang
>I tought about a posibility to access a HASH in way that the VALUES can also >be used like KEYS...i.e in perl6 I will say this : > >%hash{key} = value; > >I want to say also : > >{value}hash% = key; Please forget about it. It is just syntactic sugar for yourself. The hash mapping is m-to-1, th

Re: properties, revisited

2001-08-02 Thread Dan Sugalski
At 07:28 PM 8/2/2001 -0700, Edward Peschko wrote: > > Now that you've got me thinking about it, that brings up some interesting > > questions. > > > > $bar = $foo is my_prop = 0 is some_prop; > > ($bar = $foo is my_prop) = 0 is some_prop; > > $bar = ($foo is my_prop) = 0 is some_prop; > >This is w