, but not quite. You can't dereference a list, but you
can deref a reference to an anonymous hash:
print keys %{ { reverse %hash } };
Note, by the way, that if you know your data contains no duplicate
values, you could simply have done this:
print values %hash;
--
Gaal Yahas [EMAIL PROTECTED
())
directly anyway.
--
Gaal Yahas [EMAIL PROTECTED]
http://gaal.livejournal.com/
. That is in fact my point: using the non-native notion of what
truth is, you can't use any code from other people because you can't
assume it returns what you expect to be called true to signal truth.
--
Gaal Yahas [EMAIL PROTECTED]
http://gaal.livejournal.com/
in all this. It's mostly there for
c implementations anyway, that want to know how much memory to allocate
in advance.
--
Gaal Yahas [EMAIL PROTECTED]
http://gaal.livejournal.com/
.. @values / 2 - 1;
$#values /= 2;
--
Gaal Yahas [EMAIL PROTECTED]
http://gaal.livejournal.com/
for solution, score up for obfuscation...! :p
--
Gaal Yahas [EMAIL PROTECTED]
http://gaal.livejournal.com/