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'

In reply to Re: Is there any way to shut off deprecated, dangerous, dilapidated, or otherwise undesirable language features? by tobyink
in thread Is there any way to shut off deprecated, dangerous, dilapidated, or otherwise undesirable language features? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.