The Perl Advent Calendar needs more articles for 2022. Submit your idea today!
                      Release of version 2.17 of Switch

    Switch - A switch statement for Perl, do not use if you can use given/when

DESCRIPTION provides the syntax and semantics for an explicit case
    mechanism for Perl. The syntax is minimal, introducing only the
    keywords C<switch> and C<case> and conforming to the general pattern
    of existing Perl control structures. The semantics are particularly
    rich, allowing any one (or more) of nearly 30 forms of matching to
    be used when comparing a switch value with its various cases.

    Damian Conway (
    Maintained by Alexandr Ciornii (
    Previously was maintained by Rafael Garcia-Suarez and perl5 porters.

    Copyright (c) 1997-2008, Damian Conway. All Rights Reserved.
    This module is free software. It may be used, redistributed
        and/or modified under the same terms as Perl itself.