Perl 5.10.0 introduced a new pragma, "features". One of the features is "switch":
There are some new keywords to use with switch statements: given, when and default.
Read about this new feature and other changes to perl in the History/Changes pages on perldoc:
------------------------------------------
- Kevin, perl coder unexceptional!![[wiggle] [wiggle] [wiggle]](/data/assets/smilies/wiggle.gif)
Code:
use features 'switch';
There are some new keywords to use with switch statements: given, when and default.
Read about this new feature and other changes to perl in the History/Changes pages on perldoc:
------------------------------------------
- Kevin, perl coder unexceptional!
![[wiggle] [wiggle] [wiggle]](/data/assets/smilies/wiggle.gif)