Hi tej, Replace "=" with "=>" or ",". For example:
%hash = ("rabbit" => "test"); $string = "rabbit"; if ($string =~ /rabbit/){ $string = $hash{"rabbit"}; }
Prasad
In reply to Re: Pattern matching with hash keys
by prasadbabu
in thread Pattern matching with hash keys
by tej
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |