develooper Front page | perl.perl5.porters | Postings from July 2012

Re: [perl #105278] Add warning for exists($a[0]) and delete($a[0])

Thread Previous | Thread Next
Ricardo Signes
July 23, 2012 20:12
Re: [perl #105278] Add warning for exists($a[0]) and delete($a[0])
Message ID:
* Jesse Luehrs <> [2012-07-03T02:16:05]
> And patch #1 is now applied as 5e5bb7c. Leaving #2 and #3 for now until
> we come to a consensus on this issue.

"this issue" here is "should using the deprecated exists($a[$i]) and
delete($a[$i])" warn?

Or is it going back to the notion of removing tests, which I believe was
rebutted, and not erroneously?

The use of exists and delete on array elements has been marked as deprecated
since 5.12, and I believe it should be issuing a deprecation warning if we are
ever to follow through and remove it.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About