G'day Darkwing,

"Now this page Beware of the removal of when in Perl v5.28 tells that when() will be removed in perl 5.28, ..."

Well, it doesn't actually say it will be removed, rather to beware of its removal. Yes, I know, it's a subtle distinction.

If you look at the abstract, you'll see "... I haven’t seen an official notice ...", followed by "... by popular outcry these changes won’t be in v5.28.". Also note that the article is about six months old.

Perl 5.28 is currently at RC4 (RC=Release Candidate), and when is still there. I would, however, draw your attention to "perlsyn: Experimental Details on given and when" (from 5.28-RC4). Note phrases like "highly experimental" and "subject to change with little notice" whilst reading that section.

At the end of the day, you shouldn't be using any experimental features in production code. Of course, this particular feature is a little tricky in that regard. It was introduced in 5.10 and many, myself included, used it. But, in 5.18 it was made experimental: "perl5180delta: The smartmatch family of features are now experimental".

I'd advise not using it in any commercial or production grade code; and being aware of potential problems when using it elsewhere.

— Ken


In reply to Re: Will 'when()' be removed or deprecated in upcoming version of Perl? by kcott
in thread Will 'when()' be removed or deprecated in upcoming version of Perl? by Darkwing

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.