Perl 5.10 introduced a real switch called given-when
The old Switch used source filtering and had other limitations.
More Related Contents:
- How can I install a CPAN module into a local directory?
- How can I install Perl modules without root privileges?
- How can I use a new Perl module without install permissions?
- How can I require an optional Perl module if installed?
- How do I “use” a Perl module in a directory not in @INC?
- How can I dynamically include Perl modules without using eval?
- What is the difference between new Some::Class and Some::Class->new() in Perl?
- How do I choose a package name for a custom Perl module that does not collide with builtin or CPAN packages names?
- How can I install a specific version of a set of Perl modules?
- Obtain a switch/case behaviour in Perl 5
- How can I find the version of an installed Perl module?
- In Perl, how can I check from which module a given function was imported?
- How to retrieve the values of required keys in Perl [closed]
- Perl: Meaning of double squared brackets after a string?
- What does this HTML::Parser() code do in Perl? [closed]
- Why use strict and warnings?
- Why does modern Perl avoid UTF-8 by default?
- Why is three-argument open calls with autovivified filehandles a Perl best practice?
- What’s the difference between Perl’s backticks, system, and exec?
- How can I parse dates and convert time zones in Perl?
- Which one is good practice, a lexical filehandle or a typeglob?
- Perl memory usage profiling and leak detection?
- How should I use the “my” keyword in Perl?
- Global symbol requires explicit package name
- How do I include functions from another file in my Perl script?
- Use of ‘use utf8;’ gives me ‘Wide character in print’
- What reasons are there to prefer glob over readdir (or vice-versa) in Perl?
- How to convert letters with accents, umlauts, etc to their ASCII counterparts in Perl?
- How can I extract text from a PDF file in Perl?
- How do I retrieve the terminal width in Perl?