in reply to retriving array value from hash refernce

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);

Replies are listed 'Best First'.
Re^2: retriving array value from hash refernce
by Anonymous Monk on Jun 30, 2010 at 11:55 UTC
    hi use of Dumper gave me out put
    test_script.pl $VAR1 = "gms";
    which shows it is correclty retrived rt?
      yes, but it is "gms" and not "gsm" which is what you gave as the correct string