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

Re: Deprecation of ${^ENCODING}

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
June 8, 2017 17:43
Subject:
Re: Deprecation of ${^ENCODING}
Message ID:
20170608174321.25395.qmail@lists-nntp.develooper.com
Sawyer X wrote:
> I think what this addresses is a developer assuming that undef'ing this
> variable (by applying "undef" to it, undef()'ing it, or local()izing it)
> has an effect. Any such assumption might be worthwhile verifying doesn't
> work by fatalizing.

The effect that

    local ${^ENCODING} = undef;

has is to protect code from buggy behaviour possibly turned on by some
other piece of code.  Such defensive programming should continue to
work, so that people *now* can write such code to make their new code
work properly in older perl versions.

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