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

Re: Deprecation of ${^ENCODING}

Thread Previous | Thread Next
Father Chrysostomos
June 8, 2017 17:43
Re: Deprecation of ${^ENCODING}
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About