#print each key of the hash to verify result foreach $done ( keys %hash2){ print "$done\n"; }