I began using the 'given/when' keywords a couple of weeks back - which are a nice edition in my opinion and make perl that bit more C'ish. However, after finally getting around to downloading the newest "StarberryPerl" this morning I have started to see 'given is experimental' and 'when is experimental' warnings. On consulting the fascinating "PerlDelta" page it seems it is more a question of 'smartmatch' being up for change/deprecation than 'given' itself. However the warnings are still there and the documentation is vague... I think I could specifically switch that warning off, but I do not want to get used to what for me would be a fairly staple code construct and then have it vanish when 5.20 appears.

Do any of you chaps know for sure if 'given' is doomed/safe? Do you use it heavily in your own programmes?


In reply to perldelta unclear on 'given's fate by morelenmir

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.