develooper Front page | perl.perl6.language | Postings from August 2001

two-way hashes

Thread Next
From:
raptor
Date:
August 2, 2001 09:43
Subject:
two-way hashes
Message ID:
001901c11b61$208417f0$0500a8c0@xxx
hi,

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;

print {value}hash%;#will print the key for this value...

joking :")) but is this good... or I'm talking bullsh...s  again ..
Ofcource this mean that we can't have the same value in the HASH.
=====
iVAN
raptor@unacs.bg
=====


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About