# perldoc > Exporter::Lite

---
type: CommandReference
command: Exporter::Lite
mode: perldoc
section: "3"
source: perldoc
---

## Quick Reference
- `use Exporter::Lite;` — Load exporter mix-in into your module
- `our @EXPORT = qw($scalar function);` — Declare default exports
- `our @EXPORT_OK = qw(@array %hash);` — Declare optional exports
- `use YourModule;` — Import all default symbols
- `use YourModule qw($foo bar);` — Import only requested symbols (defaults must be listed explicitly if any import is requested)
- `YourModule->import(@symbols);` — Manual import call (rarely needed directly)

## Name
Lightweight exporting of functions and variables from Perl modules

## Synopsis
perl
package MyModule;
use Exporter::Lite;

our @EXPORT    = qw($Foo bar);    # symbols always exported by default
our @EXPORT_OK = qw($Baz qux);    # symbols exported only on request
perl
use MyModule;                      # imports $Foo and bar()
use MyModule qw($Baz qux $Foo);    # imports only listed symbols
## Methods
- `import()` — Automatically invoked when a module is `use`d. Exports symbols from the caller’s `@EXPORT` (if no args) or from `@EXPORT`/`@EXPORT_OK` (if explicit list given). Dies if a requested symbol is not in either array or has an unrecognised sigil.
  - `package->import;` — exports everything in `@EXPORT`
  - `package->import(@symbols);` — exports only the requested symbols; each must be in `@EXPORT` or `@EXPORT_OK`

## Diagnostics
- `"%s" is not exported by the %s module` — Attempted to import a symbol missing from `@EXPORT`/`@EXPORT_OK`.
- `Can't export symbol: %s` — Unknown symbol type (sigil `$`, `@`, `%`, or `&` not recognised).

## See Also
- [Exporter](https://www.chedong.com/phpMan.php/perldoc/Exporter/markdown) — The original exporter module bundled with Perl.
- [Exporter::Tiny](https://www.chedong.com/phpMan.php/perldoc/Exporter%3A%3ATiny/markdown) — Feature-rich exporter with sub-generators (core-only deps).
- [Sub::Exporter](https://www.chedong.com/phpMan.php/perldoc/Sub%3A%3AExporter/markdown) — Sophisticated exporter with custom routines.
- [Exporter::Simple](https://www.chedong.com/phpMan.php/perldoc/Exporter%3A%3ASimple/markdown) — Attribute-driven export control.
- [Attribute::Exporter](https://www.chedong.com/phpMan.php/perldoc/Attribute%3A%3AExporter/markdown) — Export via attributes.
- [Exporter::Shiny](https://www.chedong.com/phpMan.php/perldoc/Exporter%3A%3AShiny/markdown) — Concise optional exports for Exporter::Tiny.
- [Exporter::Declare](https://www.chedong.com/phpMan.php/perldoc/Exporter%3A%3ADeclare/markdown) — Syntactic sugar for export declarations.
- [Exporter::Lexical](https://www.chedong.com/phpMan.php/perldoc/Exporter%3A%3ALexical/markdown) — Export lexical subs.
- [Exporter::Auto](https://www.chedong.com/phpMan.php/perldoc/Exporter%3A%3AAuto/markdown) — Export all public functions.
- [Const::Exporter](https://www.chedong.com/phpMan.php/perldoc/Const%3A%3AExporter/markdown) — Export constants easily.
- [Constant::Exporter](https://www.chedong.com/phpMan.php/perldoc/Constant%3A%3AExporter/markdown) — Another constant-exporting helper.
- [Constant::Export::Lazy](https://www.chedong.com/phpMan.php/perldoc/Constant%3A%3AExport%3A%3ALazy/markdown) — Lazy constant exports.
- [AppConfig::Exporter](https://www.chedong.com/phpMan.php/perldoc/AppConfig%3A%3AExporter/markdown) — Export parts of an AppConfig configuration.
- [Class::Exporter](https://www.chedong.com/phpMan.php/perldoc/Class%3A%3AExporter/markdown) — Export class methods as regular subroutines.
- [Xporter](https://www.chedong.com/phpMan.php/perldoc/Xporter/markdown) — Exporter variant with persistent defaults and auto-ISA.