Exporter::Tiny(3) User Contributed Perl Documentation Exporter::Tiny(3)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

```
   package MyUtils;
   use base "Exporter::Tiny";
   our @EXPORT = qw(frobnicate);
   sub frobnicate { ... }
   1;
   package MyScript;
   use MyUtils "frobnicate" => { -as => "frob" };
   print frob(42);
   exit;
```

# [DESCRIPTION](#DESCRIPTION)

Exporter::Tiny supports many of Sub::Exporter's external-facing features including renaming imported functions with the "-as", "-prefix" and "-suffix" options; explicit destinations with the "into" option; and alternative installers with the "installer" option. But it's written in only about 40% as many lines of code and with zero non-core dependencies.

Its internal-facing interface is closer to Exporter.pm, with configuration done through the @EXPORT, @EXPORT\_OK and %EXPORT\_TAGS package variables.

If you are trying to **write** a module that inherits from Exporter::Tiny, then look at:

- Exporter::Tiny::Manual::QuickStart
- Exporter::Tiny::Manual::Exporting

If you are trying to **use** a module that inherits from Exporter::Tiny, then look at:

•

Exporter::Tiny::Manual::Importing

# [BUGS](#BUGS)

Please report any bugs to &lt;https://github.com/tobyink/p5-exporter-tiny/issues&gt;.

# [SEE ALSO](#SEE_ALSO)

&lt;https://exportertiny.github.io/&gt;.

Simplified interface to this module: Exporter::Shiny.

Less tiny version, with more features: Exporter::Almighty.

Other interesting exporters: Sub::Exporter, Exporter.

# [AUTHOR](#AUTHOR)

Toby Inkster &lt;tobyink@cpan.org&gt;.

# [COPYRIGHT AND LICENCE](#COPYRIGHT_AND_LICENCE)

This software is copyright (c) 2013-2014, 2017, 2022-2025 by Toby Inkster.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

# [DISCLAIMER OF WARRANTIES](#DISCLAIMER_OF_WARRANTIES)

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

2026-07-29 perl v5.44.0

---

Document: Exporter::Tiny(3pm) from perl-exporter-tiny 1.006003-r2 (Chainguard OS)
Source: https://github.com/tobyink/p5-exporter-tiny
