- or download this
for (
[qw(a a b c)],
...
) {
print(uinq(@$_), "\n"); # Can't coerce array into hash
}
- or download this
for ('a a b c', 'd e e f') {
print(uinq(split), "\n"); # Can't use string ("a a b c") as a HASH
+ ref while "strict refs" in use
}
- or download this
do { local %_; @_{@_}=(); keys %_ }
- or download this
sub uinq { local %_; @_{@_}=(); keys %_ }