I'm using the Perl::Critic module to scan my code. One of the returned violations is:

Found use of Switch. This module is deprecated by the Perl 5 Porters at line 15, column 1. Find an alternative module.

However, I'm not finding any documentation anywhere to substantiate this. The only thing remotely close that I've found is that perl 6 is supposed to have a built-in switch with different syntax...but I'm using using ActiveState v5.2x. According to the ActiveState PPM index, the build is available for my OS and perl versions. Plus, I'm not seeing anything on cpan saying it's depreciated. I know I can configure the Perl::Critic as needed, but this seems a bit too important to ignore.

Any ideas on 1) where this may be documented and 2) what I should be using instead?


In reply to Switch depreciated? by ksublondie

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.