Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
if i hard code the value tomy $event_method=$event_ref->[0]; --$event_ref is an array reference #print $event_method; my @file_details=@{$event_file -> {$event_method}}; --$event_file is an hash reference print "@file_details";
i get the desired out put. I have printed the $event_method value and that also retrived correctly. I am not bale to debug the error please guide me. Thanks in advancemy @file_details=@{$event_file -> {gsm}};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: retriving array value from hash refernce
by jethro (Monsignor) on Jun 30, 2010 at 11:22 UTC | |
by Anonymous Monk on Jun 30, 2010 at 11:55 UTC | |
by jethro (Monsignor) on Jun 30, 2010 at 11:59 UTC |