Hash of Hashes - Error

2011-08-24 Thread anand.jawaji
Hi All, I am working on the below code to traverse through a hash, but it throws an error which states "Can't coerce array into hash at temp.pl line 6." Code: === sub hash_walk { my $self = shift; my ($hash, $key_list, $ca

RE: Hash of Hashes - Error

2011-08-23 Thread anand.jawaji
Thanks a lot for the suggestions and solution. Regards, Anand -Original Message- From: Shlomi Fish [mailto:shlo...@shlomifish.org] Sent: Tuesday, August 23, 2011 5:09 PM To: Jawaji, Anand Cc: beginners@perl.org Subject: Re: Hash of Hashes - Error Hi Anand, On Tue, 23 Aug 2011 05:57:02

Hash of Hashes - Error

2011-08-23 Thread anand.jawaji
Hi All, I am working on the below code to traverse through a hash, but it throws an error which states "Can't coerce array into hash at temp.pl line 6." Code: === sub hash_walk { my $self = shift; my ($hash, $key_list, $ca