I am trying to check if a certain hash element exists. I have two keys for the hash:
if (exists $hash{$key1}{*})
{
then do blabla
}
So, where the * is, I would like to use a wildcard (i.e., that value can be anything). What is/are the wildcard charachter(s) for Perl in a situation like this? Many thanks!
There are no wild card characters.
You can get a list of the keys like so:
…which you can then check to see if it has a length, test using
grepor whatever.