develooper Front page | perl.perl5.porters | Postings from June 2010

Re: [perl #41480] PATCH: Die on deprecated %ash->{$k} and@rray->[$i] syntax

Thread Previous | Thread Next
From:
Jesse Vincent
Date:
June 28, 2010 19:00
Subject:
Re: [perl #41480] PATCH: Die on deprecated %ash->{$k} and@rray->[$i] syntax
Message ID:
20100628221615.GP26285@puppy



On Tue 25.May'10 at 20:34:33 +0000, Ævar Arnfjörð Bjarmason wrote:
> On Sat, Feb 10, 2007 at 18:04, Nicholas Clark <perlbug-followup@perl.org> wrote:
> > This is a bug report for perl from nick@ccl4.org,
> > generated with the help of perlbug 1.35 running under perl v5.8.8.
> >
> > $ ./perl -we 'shift @foo if @foo->[0];'
> > Using an array as a reference is deprecated at -e line 1.
> > $ ./perl -we 'keys %foo if %foo->{"bar"};'
> > Using a hash as a reference is deprecated at -e line 1.
> >
> >
> > Would it simplify anything to actually remove the syntax before 5.10?
> 
> Here's a patch to hard-deprecate these for 5.14. I didn't find any
> prior art for testing for s/warn/die/, maybe this'll do.

What do we gain from actively killing the already-deprecated feature?

-Jesse

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