develooper Front page | perl.perl5.porters | Postings from May 2015

RE: [perl #125103] [RESOLVED] Calling each() on an undefined hashreturns non-empty list

Thread Next
From:
Huang, Cunzhi
Date:
May 6, 2015 02:23
Subject:
RE: [perl #125103] [RESOLVED] Calling each() on an undefined hashreturns non-empty list
Message ID:
1218c23381734121abaeae850e835882@ustx2ex-dag1mb1.msg.corp.akamai.com
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About