develooper Front page | perl.perl5.porters | Postings from December 2011

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

Thread Previous
From:
Father Chrysostomos via RT
Date:
December 30, 2011 21:53
Subject:
[perl #105278] Add warning for exists($a[0]) and delete($a[0])
Message ID:
rt-3.6.HEAD-25540-1325310796-31.105278-15-0@perl.org
On Fri Dec 16 11:26:15 2011, ikegami@adaelis.com wrote:
> Hi,
> 
> The text of the opening post (below) describes patches #2 and #3.
> 
> Patch #1 changes two C<< exist($_[1]) >> to C<< @_ >= 2 >>. Any
> objections
> to that? They aren't part of tests for exists($a[]) or delete($a[]).

I actually think the code reads more clearly with the exists() form.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=105278

Thread Previous


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