# perldoc > Exporter::Tiny

---
type: CommandReference
command: Exporter::Tiny
mode: perldoc
section: 3pm
source: perldoc
---

## Quick Reference

- `use base "Exporter::Tiny";` — make your module an exporter
- `our @EXPORT = qw(frobnicate);` — list default exports
- `our @EXPORT_OK = qw(...);` — list optional exports
- `use MyUtils "frobnicate" => { -as => "frob" };` — import with renaming
- `use MyUtils "frobnicate" => { -prefix => "my_" };` — import with prefix
- `use MyUtils "frobnicate" => { -suffix => "_func" };` — import with suffix
- `use MyUtils "frobnicate" => { into => "Another::Package" };` — export into another package
- `use MyUtils "frobnicate" => { installer => \&custom_install };` — custom installer

## Name

**Exporter::Tiny** — an exporter with the features of Sub::Exporter but only core dependencies

## Synopsis

perl
package MyUtils;
use base "Exporter::Tiny";
our @EXPORT = qw(frobnicate);
sub frobnicate { ... }
1;

package MyScript;
use MyUtils "frobnicate" => { -as => "frob" };
print frob(42);
exit;
## Options

### Import options

- `-as => "newname"` — rename imported function
- `-prefix => "my_"` — prepend a prefix to the imported name
- `-suffix => "_func"` — append a suffix to the imported name
- `into => "Target::Package"` — install the exported function into a different package
- `installer => \&sub` — provide a custom subroutine to install the exported function

### Package variables

- `@EXPORT` — list of symbols exported by default
- `@EXPORT_OK` — list of symbols exportable on demand
- `%EXPORT_TAGS` — named groups of exports

## Examples

### Creating an exporter module

perl
package MyUtils;
use base "Exporter::Tiny";
our @EXPORT = qw(frobnicate);
our @EXPORT_OK = qw(greeter);
sub frobnicate { ... }
sub greeter { ... }
1;
### Importing with renaming

perl
use MyUtils 'frobnicate' => { -as => 'frob' };
### Importing into a different package

perl
use MyUtils 'frobnicate' => { into => 'Another::Package' };
## See Also

- [Exporter::Shiny](https://metacpan.org/pod/Exporter::Shiny) — simplified interface
- [Sub::Exporter](https://metacpan.org/pod/Sub::Exporter) — the original exporter
- [Exporter](https://metacpan.org/pod/Exporter) — Perl's built-in exporter
- [Exporter::Tiny::Manual::QuickStart](https://metacpan.org/pod/Exporter::Tiny::Manual::QuickStart)
- [Exporter::Tiny::Manual::Exporting](https://metacpan.org/pod/Exporter::Tiny::Manual::Exporting)
- [Exporter::Tiny::Manual::Importing](https://metacpan.org/pod/Exporter::Tiny::Manual::Importing)