The experiments and deprecation regime for perl core has changed significantly over the years which is a great thing. I'm wondering if it has been considered to create a new CLI flag to determine within files whether either one are being used without exercising the code (like the -c flag for syntax).

I thought about writing a Test:: module for this, but after only about 15 minutes, realized that it would be nearly futile without both very excessive build prereqs and nearly impossible-to-keep-updated trickery. I do think it would be a nice feature to have, to be able to throw a list of files at perl blead and see if any of one's modules within it may require changes before the next public release without having to actually ensure 100% test coverage, and rebuilding/testing all your modules/scripts prior to each one.

Is this something reasonable, or am I over-thinking again?

Update: for those who aren't aware, perl blead is the most recent build of core perl's development code, always in an odd version number. Currently, blead is 5.23, in prep for the public release of 5.24. blead == trunk/master etc.


In reply to Could perl have a "do these files contain experimental/deprecated features" flag? by stevieb

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.