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".
This gives the value is unitialized. warning message. I want to print the values for the key "correct". Please help mefor my $data_pair (@data_list) { print "The value is $data_pair->{'correct'}\n"; }
Back to
Seekers of Perl Wisdom