perl-Constant-FromGlobal - declare constant(s) with value from global or environment variable

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Constant-FromGlobal
Package version 0.09
Package release alt2
Package architecture noarch
Package type rpm
Installed size 25.71 KB
Download size 25.71 KB
Official Mirror
This module lets you define constants that either take their values from
global variables, or from environment variables. The constants are
function-style constants, like those created using the the constant manpage pragma.
Here's a minimal example showing how to set a constant from a global
our $DEBUG;
$DEBUG = 1;
use Constant::FromGlobal qw/ DEBUG /;
You might wonder why you might want to do that?
A better example is where a module sets a constant from a global
variable in its package, but you can set that variable before
using the module.
First, here's the module:
package Foobar;
use Constant::FromGlobal LOGLEVEL => { default => 0 };
Then elsewhere you can write something like this:
$Foobar::LOGLEVEL = 3;
use Foobar;


Package Version Architecture Repository
perl-Constant-FromGlobal - - -


Name Value
/usr/share/perl5 -
perl(Data/ -
perl(Scalar/ -
perl( -
rpmlib(PayloadIsLzma) -


Name Value
perl(Constant/ = 0.090
perl-Constant-FromGlobal = 0.09-alt2


Type URL
Binary Package perl-Constant-FromGlobal-0.09-alt2.noarch.rpm
Source Package perl-Constant-FromGlobal-0.09-alt2.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Constant-FromGlobal rpm package:
    # sudo apt-get install perl-Constant-FromGlobal



See Also

Package Description
perl-Constant-Generate-0.17-alt1_4.noarch.rpm Common tasks for symbolic constants
perl-Constant-Generator-1.013-alt1.noarch.rpm this module bring flexible (I hope) constant generator to You
perl-Constructible-0.02-alt1.noarch.rpm Provides an interface to Maxima(full-featured CAS) as well as means to visualize and compute constr
perl-Consul-Simple-1.142430-alt1.noarch.rpm Easy access to Consul (
perl-Contenticious-0.391-alt1.noarch.rpm build web sites from markdown files
perl-Contenticious-scripts-0.391-alt1.noarch.rpm Contenticious scripts
perl-Context-Handle-0.01-alt1.noarch.rpm A convenient context propagation proxy thingy
perl-Context-Micro-0.01-alt1.noarch.rpm Micro Context Class
perl-Context-Set-0.02-alt1.noarch.rpm A Contextual preference/configuration holder
perl-Context-Singleton-1.0.5-alt1.noarch.rpm handles context specific singletons
perl-Contextual-Call-0.01-alt1.noarch.rpm call sub with caller's context
perl-Contextual-Return-Wrapper-0.01-alt1.noarch.rpm Common functionality using wantarray
perl-Continual-Process-0.2.1-alt1.noarch.rpm (re)start dead process
perl-Continuation-Escape-0.03-alt1.noarch.rpm escape continuations (returning higher up the stack)
perl-Continuity-1.6-alt1_5.noarch.rpm Mix callbacks into the Continuity request object