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

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

Thread Previous | Thread Next
From:
Eric Brine
Date:
December 30, 2011 22:12
Subject:
Re: [perl #105278] Add warning for exists($a[0]) and delete($a[0])
Message ID:
CALJW-qF=hy1AfPepKLno=uBJHtJ6DzcwjV1UKsz0=iDom3NsXg@mail.gmail.com
On Sat, Dec 31, 2011 at 12:53 AM, Father Chrysostomos via RT <
perlbug-followup@perl.org> wrote:

> 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.
>

But it's not valid code according to the documentation. Are you saying the
documentation should be changed?

Thread Previous | 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