in reply to Is there any way to shut off deprecated, dangerous, dilapidated, or otherwise undesirable language features?

Try Syntax::Collector as a way of enforcing syntax standards (and syntax extensions) onto all packages in your project.

package YourProject::Syntax; use Syntax::Collector -collect => q{ use constant 0 { true => !0, false => !1 }; use Scalar::Util 1.23 qw(blessed); use Carp 1.00 qw(confess); use strict 0; use warnings 0 FATAL => qw(all); no warnings 0 qw(void once uninitialized); no indirect 0.10; use feature 0 qw(say state switch); use utf8::all 0; use autodie 2.12; use true 0; }; 1;

Then enforce a coding standard that all packages must begin with use YourProject::Syntax. This allows you to control all your boiler-plate imports and pragmata from a single location.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
  • Comment on Re: Is there any way to shut off deprecated, dangerous, dilapidated, or otherwise undesirable language features?
  • Select or Download Code