raveguy2k has asked for the wisdom of the Perl Monks concerning the following question: (regular expressions)

If someone enters something that SHOULD be in the hash, but isn't, how could I use a regexp to test to see what values closely match it and return those values. (the values will only be matched against the keys)

Originally posted as a Categorized Question.

  • Comment on Using RegExp with hashes and returning multiple values

Replies are listed 'Best First'.
Re: Using RegExp with hashes and returning multiple values
by ariels (Curate) on Jun 03, 2002 at 08:33 UTC
Re: Using RegExp with hashes and returning multiple values
by BUU (Prior) on Jun 03, 2002 at 21:57 UTC
    grep {/$regex/} keys %hash