perl-Switch - A switch statement for Perl

Distribution: ROSA Enterprise Desktop
Repository: ROSA Contrib Updates x86_64
Package name: perl-Switch
Package version: 2.160.0
Package release: 3-rosa.lts2012.0
Package architecture: noarch
Package type: rpm
Installed size: 38.33 KB
Download size: 21.10 KB
Official Mirror:
The module implements a generalized case mechanism that covers most (but not all) of the numerous possible combinations of switch and case values described above. The module augments the standard Perl syntax with two new control statements: 'switch' and 'case'. The 'switch' statement takes a single scalar argument of any type, specified in parentheses. 'switch' stores this value as the current switch value in a (localized) control variable. The value is followed by a block which may contain one or more Perl statements (including the 'case' statement described below). The block is unconditionally executed once the switch value has been cached. A 'case' statement takes a single scalar argument (in mandatory parentheses if it's a variable; otherwise the parens are optional) and selects the appropriate type of matching between that argument and the current switch value. The type of matching used is determined by the respective types of the switch value and the 'case' argument, as specified in Table 1. If the match is successful, the mandatory block associated with the 'case' statement is executed.



  • perl(Switch) == 2.160.0
  • perl-Switch == 2.160.0-3:2012.0

    Install Howto

    1. Enable ROSA Contrib Updates repository on Install and Remove Software"
    2. Update packages list:
      # urpmi.update -a
    3. Install perl-Switch rpm package:
      # urpmi perl-Switch


    • /usr/lib/perl5/vendor_perl/5.12.3/
    • /usr/share/doc/perl-Switch/Changes
    • /usr/share/doc/perl-Switch/README
    • /usr/share/man/man3/Switch.3pm.xz


    2011-04-16 - Funda Wang <> 2.160.0-3mdv2011.0 + Revision: 653620 - rebuild for updated spec-helper

    2010-07-28 - J?r?me Quelin <> 2.160.0-2mdv2011.0 + Revision: 562434 - rebuild

    2009-11-06 - J?r?me Quelin <> 2.160.0-1mdv2011.0 + Revision: 460773 - update to 2.16