I do not agree with you. If each() does return an empty list, shouldn't the while loop stop without executing the statements inside the loop? (undef, undef) isn't the same as (), is it? If a hash is undefined (and hence it is empty), each() should return an empty list, not (undef, undef). Don't you agree? -----Original Message----- From: H. Merijn Brand via RT [mailto:perlbug-followup@perl.org] Sent: Tuesday, May 05, 2015 6:18 AM To: Huang, Cunzhi Subject: [perl #125103] [RESOLVED] Calling each() on an undefined hash returns non-empty list According to our records, your request regarding "Calling each() on an undefined hash returns non-empty list" has been resolved. If you have any further questions or concerns, please respond to this message. For other topics, please create a new ticket. <URL: https://rt.perl.org/Ticket/Display.html?id=125103 >Thread Next