perl-Exporter-Lite - Lightweight Exporting of Functions and Variables

Property Value
Distribution openSUSE Leap 42.2
Repository openSUSE Oss all
Package name perl-Exporter-Lite
Package version 0.08
Package release 1.1
Package architecture noarch
Package type rpm
Installed size 13.17 KB
Download size 13.59 KB
Official Mirror
Exporter::Lite is an alternative to Exporter, intended to provide a
lightweight subset of the most commonly-used functionality. It supports
'import()', '@EXPORT' and '@EXPORT_OK' and not a whole lot else.
Unlike Exporter, it is not necessary to inherit from Exporter::Lite; Ie you
don't need to write:
@ISA = qw(Exporter::Lite);
Exporter::Lite simply exports its import() function into your namespace.
This might be called a "mix-in" or a "role".
Setting up a module to export its variables and functions is simple:
package My::Module;
use Exporter::Lite;
our @EXPORT = qw($Foo bar);
Functions and variables listed in the '@EXPORT' package variable are
automatically exported if you use the module and don't explicitly list any
imports. Now, when you 'use My::Module', '$Foo' and 'bar()' will show up.
Optional exports are listed in the '@EXPORT_OK' package variable:
package My::Module;
use Exporter::Lite;
our @EXPORT_OK = qw($Foo bar);
When My::Module is used, '$Foo' and 'bar()' will _not_ show up, unless you
explicitly ask for them:
use My::Module qw($Foo bar);
Note that when you specify one or more functions or variables to import,
then you must also explicitly list any of the default symbols you want to
use. So if you have an exporting module:
package Games;
our @EXPORT    = qw/ pacman defender  /;
our @EXPORT_OK = qw/ galaga centipede /;
Then if you want to use both 'pacman' and 'galaga', then you'd write:
use Games qw/ pacman galaga /;


Package Version Architecture Repository
perl-Exporter-Lite - - -


Name Value
perl(:MODULE_COMPAT_5.18.2) -
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsLzma) <= 4.4.6-1


Name Value
perl(Exporter::Lite) = 0.08
perl-Exporter-Lite = 0.08-1.1


Type URL
Binary Package perl-Exporter-Lite-0.08-1.1.noarch.rpm
Source Package perl-Exporter-Lite-0.08-1.1.src.rpm

Install Howto

Install perl-Exporter-Lite rpm package:

# zypper install perl-Exporter-Lite

See Also

Package Description
perl-Exporter-Tidy-0.08-4.1.noarch.rpm Another way of exporting symbols
perl-Exporter-Tiny-0.042-4.2.noarch.rpm an exporter with the features of Sub::Exporter but only core dependencies
perl-ExtUtils-CChecker-0.10-2.1.noarch.rpm Configure-Time Utilities for Using C Headers,
perl-ExtUtils-Config-0.007-6.2.noarch.rpm A wrapper for perl's configuration
perl-ExtUtils-CppGuess-0.11-2.1.x86_64.rpm Guess C++ Compiler and Flags
perl-ExtUtils-Depends-0.405-1.1.noarch.rpm Easily build XS extensions that depend on XS extensions
perl-ExtUtils-F77-1.17-108.1.x86_64.rpm Simple interface to F77 libs
perl-ExtUtils-Helpers-0.021-4.2.noarch.rpm Various portability utilities for module builders
perl-ExtUtils-InstallPaths-0.010-4.2.noarch.rpm Build.PL install path logic made easy
perl-ExtUtils-LibBuilder-0.04-4.2.noarch.rpm A tool to build C libraries
perl-ExtUtils-MakeMaker-7.10-1.1.noarch.rpm Create a module Makefile
perl-ExtUtils-MakeMaker-CPANfile-0.07-1.1.noarch.rpm Cpanfile Support for Eumm
perl-ExtUtils-MakeMaker-mini-1.0-6.1.noarch.rpm Dependency pkg for perl-ExtUtils-MakeMaker
perl-ExtUtils-Manifest-1.70-4.1.noarch.rpm utilities to write and check a MANIFEST file
perl-ExtUtils-PkgConfig-1.150000-4.1.noarch.rpm Simplistic Interface to Pkg-Config