perl-constant - Define compile-time constants

Distribution: OpenMandriva Lx 3.0
Repository: OpenMandriva Contrib i586
Package name: perl-constant
Package version: 1.270.0
Package release: 3-omv2015.0
Package architecture: noarch
Package type: rpm
Installed size: 25.10 KB
Download size: 17.37 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:2015.0

    Install Howto

    1. Enable OpenMandriva 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.20.1/
    • /usr/share/doc/perl-constant/Changes
    • /usr/share/doc/perl-constant/README
    • /usr/share/man/man3/constant.3pm.xz