The Perl Advent Calendar needs more articles for 2022. Submit your idea today!
---
abstract: 'A switch statement for Perl, do not use if you can use given/when'
author:
  - Damian Conway
  - Rafael Garcia-Suarez
  - Alexandr Ciornii
build_requires:
  ExtUtils::MakeMaker: 0
configure_requires:
  ExtUtils::MakeMaker: 0
dynamic_config: 1
generated_by: 'ExtUtils::MakeMaker version 6.78, CPAN::Meta::Converter version 2.131490'
license: perl
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: 1.4
name: Switch
no_index:
  directory:
    - t
    - inc
requires:
  Filter::Util::Call: 0
  Text::Balanced: 2
  if: 0
  perl: 5.005
resources:
  repository: http://github.com/chorny/Switch
version: 2.17