want to access single value in a hash

2015-06-18 Thread Sunita Pradhan
I have following data structure : my $cmd_param_show = {'scsitrace_start_log_to_disk_true' = {'param_val'={'log-to-disk' = 'true'}, 'scsitrace_show' = {'log-to-disk'= 'true', 'enabled'=

Re: want to access single value in a hash

2015-06-18 Thread Akshay Mohit
Try this:- print $cmd_param_show-{'scsitrace_start_log_to_disk_true'}-{'param_val'}-{'log-to-disk'}\n; -Akshay On Thu, Jun 18, 2015 at 2:35 PM, Sunita Pradhan sunita.pradhan.2...@hotmail.com wrote: I have following data structure : my $cmd_param_show = {'scsitrace_start_log_to_disk_true' =

Re: want to access single value in a hash

2015-06-18 Thread Andrew Solomon
2015 14:46:10 +0530 Subject: Re: want to access single value in a hash To: sunita.pradhan.2...@hotmail.com CC: beginners@perl.org Try this:- print $cmd_param_show-{'scsitrace_start_log_to_disk_true'}-{'param_val'}-{'log-to-disk'}\n; -Akshay On Thu, Jun 18, 2015 at 2:35 PM, Sunita

RE: want to access single value in a hash

2015-06-18 Thread Sunita Pradhan
Yeah I am able to access the value but how to get the key ? -Sunita From: akshaymohit2...@gmail.com Date: Thu, 18 Jun 2015 14:46:10 +0530 Subject: Re: want to access single value in a hash To: sunita.pradhan.2...@hotmail.com CC: beginners@perl.org Try this:-print $cmd_param_show

Re: want to access single value in a hash

2015-06-18 Thread Balasubramanian Duraisamy
able to access the value but how to get the key ? -Sunita -- From: akshaymohit2...@gmail.com Date: Thu, 18 Jun 2015 14:46:10 +0530 Subject: Re: want to access single value in a hash To: sunita.pradhan.2...@hotmail.com CC: beginners@perl.org Try this:- print