note
diotalevi
<p>Yes. Instead of one scalar of the value '1' for every key, you get to share the same undef value for all the keys and thus don't have to allocate tons of memory you aren't going to use anyway. So <code>keys @{{map { $_, undef } @ary}}</code> has the potential to be a lot cheaper than <code>keys @{{map { $_, 1 } @ary}}</code>. The "a lot" part is just related to how many values are in your array. You burn one extra value for every entry in @ary and I'm just suggesting that you don't have to do that in this case.</p>
280658
280707