perl-constant - Define compile-time constants

Distribution: ROSA 2014.1
Repository: ROSA Contrib x86_64
Package name: perl-constant
Package version: 1.270.0
Package release: 3-rosa2014.1
Package architecture: noarch
Package type: rpm
Installed size: 25.10 KB
Download size: 17.36 KB
Official Mirror:
This pragma allows you to declare constants at compile-time. When you declare a constant such as 'PI' using the method shown above, each machine your script runs upon can have as many digits of accuracy as it can use. Also, your program will be easier to read, more likely to be maintained (and maintained correctly), and far less likely to send a space probe to the wrong planet because nobody noticed the one equation in which you wrote '3.14195'. When a constant is used in an expression, Perl replaces it with its value at compile time, and may then optimize the expression further. In particular, any code in an 'if (CONSTANT)' block will be optimized away if the constant is false.


  • perl(constant)
  • perl-constant == 1.270.0-3:2014.1

    Install Howto

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


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


    2014-07-25 - Denis Silakov <> 1.270.0-3 + Revision: 4fa92cc - MassBuild#464: Increase release tag