in reply to Re^3: (almost) Unique elements of an array
in thread (almost) Unique elements of an array

The hash is just a trick to enforce uniqueness, since, by definition, hashkeys are unique (any attempt to "duplicate" a hashkey at most changes the value that the key is associated with, but no duplicate is created).

If you want the array you can do

my @uniq = keys %{ +{ map +( uc() => undef ), @ar } };

the lowliest monk