Perl's keys() function - riky - 博客园
Perl's keys() function is used to iterate (loop) through the the keys of a HASH. The keys are returned as a list (array). There are a couple of things to keep in mind when using the keys function. Because of the way Perl works with hashes, the elements wi...