perl-exported-constants-1.0-alt1.noarch.rpm


Advertisement

Description

perl-exported-constants - Declare constants and export them automatically

Distribution: ALT Linux Sisyphus
Repository: Autoimports noarch
Package name: perl-exported-constants
Package version: 1.0
Package release: alt1
Package architecture: noarch
Package type: rpm
Installed size: 14.32 KB
Download size: 14.32 KB
Official Mirror: ftp.altlinux.org
This is a boilerplate-removal module for creating modules of just constants in your program. This is useful if you have a lot of magic numbers you want to eliminate, especially things that show up in database schemas or APIs that you want to re-use across multiple modules. It's pretty simple to use; just say use exported::constants CONSTANT1 => $value1, CONSTANT2 => $value2, ; and your package is automatically an exporter, and automatically exports (by default) all the constants listed.

Alternatives

Requires

  • /usr/share/perl5
  • rpmlib(PayloadIsLzma)

Provides

  • perl(exported/constants.pm) = 1.0
  • perl-exported-constants = 1.0-alt1

    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-exported-constants rpm package:
      # sudo apt-get install perl-exported-constants

    Files

    • /usr/share/doc/perl-exported-constants-1.0/LICENSE
    • /usr/share/doc/perl-exported-constants-1.0/README
    • /usr/share/doc/perl-exported-constants-1.0/README.md
    • /usr/share/perl5/exported/constants.pm
    Advertisement
    Advertisement