in reply to Check if key exist in hash but not exact match

You need to parse all the keys for that.

my @key_matches = grep { /cok/ } keys %prices

NB: you can have multiple matches.

Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery