Maybe that value you store into $event_method has still a "\n" value at the end (for example if you read it from a file and didn't use chomp) or some other invisible character in it.
The best way to find out things like that is to use Data::Dumper, i.e.:
use Data::Dumper; $Data::Dumper::Useqq=1; #invisible characters are shown print Dumper($event_method);
In reply to Re: retriving array value from hash refernce
by jethro
in thread retriving array value from hash refernce
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |