hash key regular expression patternby wsee (Initiate)
|on Nov 07, 2002 at 09:26 UTC||Need Help??|
wsee has asked for the wisdom of the Perl Monks concerning the following question:
I have a big Hash list, the some of the keys are made up of the combination of regular expression pattern. For example :
I would like to search the KEYS and compare to a $variable, and print the VALUE for the matched $variable.
For example, if the $variable = 'CHICAGO', then I would like to pull the corresponding value which is 'BBB'.
Could anyone give me some idea or suggestion?