colored(scalar @{$trigraphs{$k}}, 'underline'), and colored(scalar keys %{$flanks{$k}}, 'underline')); Note: the last ) is to match the ( in sprintf().