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


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

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


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:

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


Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=Exporter-Tiny.


IRC: support is available through in the #moops channel on irc.perl.org.

See Also

Simplified interface to this module: Exporter::Shiny.

Other interesting exporters: Sub::Exporter, Exporter.

External Module
This module is not included in the base Type::Tiny distribution. It needs installing from the CPAN separately.