perl-Switch - A switch statement for Perl

Property Value
Distribution OpenMandriva Lx 2014.2
Repository OpenMandriva Main Release x86_64
Package name perl-Switch
Package version 2.160.0
Package release 4-omv2014.0
Package architecture noarch
Package type rpm
Installed size 38.33 KB
Download size 21.64 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.


Package Version Architecture Repository
perl-Switch-2.160.0-4-omv2014.0.noarch.rpm 2.160.0 noarch OpenMandriva Main Release
perl-Switch-2.160.0-4-omv2013.0.noarch.rpm 2.160.0 noarch OpenMandriva Contrib Release
perl-Switch-2.160.0-4-omv2013.0.noarch.rpm 2.160.0 noarch OpenMandriva Contrib Release
perl-Switch - - -


Name Value
perl(Carp) -
perl(Filter::Util::Call) -
perl(Text::Balanced) -
perl(abi) >= 5.16.3


Name Value
perl(Switch) == 2.160.0
perl-Switch == 2.160.0-4:2014.0


Type URL
Binary Package perl-Switch-2.160.0-4-omv2014.0.noarch.rpm
Source Package perl-Switch-2.160.0-4.src.rpm

Install Howto

  1. Enable OpenMandriva Main Release repository on Install and Remove Software
  2. Update packages list:
    # urpmi.update -a
  3. Install perl-Switch rpm package:
    # urpmi perl-Switch




2012-12-11 - Alex Burmashev <> 2.160.0-4
+ Revision: 79e61da
- merging with rosa2012.1 of project perl-Switch

See Also

Package Description
perl-Sys-Hostname-Long-1.4-12-omv2014.0.noarch.rpm Try every conceivable way to get full hostname
perl-Task-Weaken-1.40.0-7-omv2014.0.noarch.rpm Ensure that a platform has weaken support
perl-Template-Toolkit-2.220.0-9-omv2014.0.x86_64.rpm Template-Toolkit module for perl
perl-Term-ReadKey-2.30-22-omv2014.0.x86_64.rpm Term::ReadKey Perl module
perl-Term-ReadLine-Gnu-1.200.0-9-omv2014.0.x86_64.rpm Perl extension for the GNU Readline/History Library
perl-Term-UI-0.360.0-2-omv2014.0.noarch.rpm Term::ReadLine UI made easy
perl-Test-Base-0.600.0-7-omv2014.0.noarch.rpm A Data Driven Testing Framework
perl-Test-CPAN-Meta-0.180.0-8-omv2014.0.noarch.rpm Validation of META.yml specification elements
perl-Test-ClassAPI-1.60.0-7-omv2014.0.noarch.rpm Test::ClassAPI - Provides basic first-pass API testing for large class trees
perl-Test-Deep-0.108.0-7-omv2014.0.noarch.rpm Extremely flexible deep comparison
perl-Test-Differences-0.610.0-5-omv2014.0.noarch.rpm Test strings and data structures and show differences if not ok
perl-Test-Exception-0.310.0-8-omv2014.0.noarch.rpm Test exception based code
perl-Test-Fatal-0.6.0-6-omv2014.0.noarch.rpm Incredibly simple helpers for testing code with exceptions
perl-Test-Harness-3.260.0-3-omv2014.0.noarch.rpm Run Perl standard test scripts with statistics
perl-Test-Inter-1.30.0-6-omv2014.0.noarch.rpm Framework for more readable interactive test scripts