tej has asked for the wisdom of the Perl Monks concerning the following question:
I am creating a hash like
my %hash= ( "rabbit" = "pap", "triangle" = "tri", and so on.. +);
I want to match key in input and replace it with its value. How can i do it? Thank you
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pattern matching with hash keys
by eyepopslikeamosquito (Archbishop) on Oct 04, 2010 at 06:15 UTC | |
by tej (Scribe) on Oct 04, 2010 at 06:24 UTC | |
by eyepopslikeamosquito (Archbishop) on Oct 04, 2010 at 06:49 UTC | |
by prasadbabu (Prior) on Oct 04, 2010 at 06:37 UTC | |
|
Re: Pattern matching with hash keys
by AnomalousMonk (Archbishop) on Oct 04, 2010 at 08:36 UTC | |
|
Re: Pattern matching with hash keys
by prasadbabu (Prior) on Oct 04, 2010 at 06:18 UTC |