perl-Constant-FromGlobal-0.09-alt2.noarch.rpm


Advertisement

Description

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 ftp.altlinux.org
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
variable:
our $DEBUG;
BEGIN {
$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:
BEGIN {
$Foobar::LOGLEVEL = 3;
}
use Foobar;

Alternatives

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

Requires

Name Value
/usr/share/perl5 -
perl(Data/OptList.pm) -
perl(Scalar/Util.pm) -
perl(constant.pm) -
rpmlib(PayloadIsLzma) -

Provides

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

Download

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] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/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

Files

Path
/usr/share/doc/perl-Constant-FromGlobal-0.09/Changes
/usr/share/doc/perl-Constant-FromGlobal-0.09/LICENSE
/usr/share/doc/perl-Constant-FromGlobal-0.09/README
/usr/share/perl5/Constant/FromGlobal.pm

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 (http://www.consul.io/)
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
Advertisement
Advertisement