Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lafenghu
perl-Exporter-Lite
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Meta Configuration of Package perl-Exporter-Lite
<package name="perl-Exporter-Lite" project="openSUSE:12.2"> <title>Lightweight exporting of variables</title> <description>This is an alternative to Exporter intended to provide a lightweight subset of its 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. no '@ISA = qw(Exporter::Lite)' mantra). Exporter::Lite simply exports its import() function. This might be called a "mix-in". Setting up a module to export its variables and functions is simple: package My::Module; use Exporter::Lite; @EXPORT = qw($Foo bar); now when you 'use My::Module', '$Foo' and 'bar()' will show up. In order to make exporting optional, use @EXPORT_OK. package My::Module; use Exporter::Lite; @EXPORT_OK = qw($Foo bar); when My::Module is used, '$Foo' and 'bar()' will _not_ show up. You have to ask for them. 'use My::Module qw($Foo bar)'.</description> <person userid="jimfunk" role="bugowner"/> </package>
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor