$hr->{$_} = 1 for @$arr;
Though I'd probably write just
and change the code to test for the existence of the key, not the value.@{$hr}{ @$arr } = ();
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re^2: Possible useless use of map
by Jenda
in thread Possible useless use of map
by andreas1234567
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |