in reply to Create a Hash Dynamically and add the values of same key

The error is here ;
foreach my $key ( keys %worth ) { # print "key: $combined, value: $worth{$combined}\n"; print "key: $key, value: $worth{$key}\n" }
poj

Replies are listed 'Best First'.
Re^2: Create a Hash Dynamically and add the values of same key
by rahulruns (Scribe) on Jun 19, 2013 at 04:05 UTC

    Thank You for pointing the mistake. It is working now. I am able to get key and value