perl-Switch - A switch statement for Perl

Property Value
Distribution OpenMandriva Lx 4.0
Repository OpenMandriva Main Release x86_64
Package filename perl-Switch-2.160.0-10-omv4000.noarch.rpm
Package name perl-Switch
Package version 2.160.0
Package release 10-omv4000
Package architecture noarch
Package type rpm
Category Development/Perl
License GPL+ or Artistic
Maintainer -
Download size 24.74 KB
Installed size 37.77 KB
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-10-omv4000.noarch.rpm 2.160.0 noarch OpenMandriva Main Release
perl-Switch - - -


Name Value
perl(Carp) -
perl(Filter::Util::Call) -
perl(Text::Balanced) -
perl(if) -
perl(strict) -
perl(vars) -


Name Value
perl(Switch) = 2.160.0
perl-Switch = 2.160.0-10


Type URL
Binary Package perl-Switch-2.160.0-10-omv4000.noarch.rpm
Source Package perl-Switch-2.160.0-10.src.rpm

Install Howto

  1. Enable the repository in Software Repository Picker:
    # om-repo-picker
  2. Install perl-Switch rpm package:
    # dnf install perl-Switch



See Also

Package Description
perl-Sys-Hostname-Long-1.4-22-omv4000.noarch.rpm Try every conceivable way to get full hostname
perl-Sys-Syslog-0.35-11-omv4000.x86_64.rpm Perl interface to the UNIX syslog(3) calls
perl-Task-Weaken-1.60.0-1-omv4000.noarch.rpm Ensure that a platform has weaken support
perl-Template-Toolkit-2.280.0-1-omv4000.x86_64.rpm Template-Toolkit module for perl
perl-Term-ANSIColor-4.06-11-omv4000.noarch.rpm Color screen output using ANSI escape sequences
perl-Term-Cap-1.17-11-omv4000.noarch.rpm Perl termcap interface
perl-Term-ReadKey-2.370.0-3-omv4000.x86_64.rpm Term::ReadKey Perl module
perl-Term-ReadLine-Gnu-1.240.0-9-omv4000.x86_64.rpm Perl extension for the GNU Readline/History Library
perl-Test-1.31-11-omv4000.noarch.rpm Simple framework for writing test scripts
perl-Test-Base-0.890.0-1-omv4000.noarch.rpm A Data Driven Testing Framework
perl-Test-CPAN-Meta-0.230.0-7-omv4000.noarch.rpm Validation of META.yml specification elements
perl-Test-ClassAPI-1.60.0-16-omv4000.noarch.rpm Test::ClassAPI - Provides basic first-pass API testing for large class trees
perl-Test-Command-0.110.0-3-omv4000.noarch.rpm Test routines for external commands
perl-Test-Deep-1.128-3-omv4000.noarch.rpm Extremely flexible deep comparison
perl-Test-Differences-0.640.0-4-omv4000.noarch.rpm Test strings and data structures and show differences if not ok