http://www.perlmonks.org?node_id=779467

gem555 has asked for the wisdom of the Perl Monks concerning the following question:

I have a hash. When I loop the hash as below: All the key and values are listed. There is a key called 'correct'. How can I print only the key "correct".
for my $data_pair (@data_list) { print "The value is $data_pair->{'correct'}\n"; }
This gives the value is unitialized. warning message. I want to print the values for the key "correct". Please help me