keys my %cache = @in; @cache{@in} = map KEY($_) => @in;