Exporter::Tiny(3)

πŸ’– NAME πŸ’–

Exporter::Tiny β€” it's an exporter, bestie, and it's giving all the features of Sub::Exporter but with only core dependencies. No extra baggage. We love a low-maintenance queen. πŸ‘‘

(Also, hi, you're reading Exporter::Tiny(3), the manual page. Welcome to the group chat. 🫢)


✨ 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 🌸

okay so. Exporter::Tiny supports SO many of Sub::Exporter's external-facing features, and I need you to know about all of them:

  • renaming imported functions with the -as, -prefix and -suffix options πŸ’…
  • explicit destinations with the into option
  • alternative installers with the installer option

but here's the iconic part β€” it's written in only about 40% as many lines of code, with zero non-core dependencies. not me being obsessed with the efficiency. periodt. πŸ”₯

Its internal-facing interface is closer to Exporter.pm, with all the configuration done through the @EXPORT, @EXPORT_OK and %EXPORT_TAGS package variables. classic. familiar. comfy. πŸŽ€

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 πŸ’€

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

bestie if you found a bug, tell the maintainers, don't just suffer in silence 😭 that's what the issue tracker is FOR.

πŸ¦‹ SEE ALSO πŸ¦‹

  • https://exportertiny.github.io/
  • Simplified interface to this module: Exporter::Shiny. (yes, the name is iconic, I know πŸŽ€)
  • Less tiny version, with more features: Exporter::Almighty. (bigger, more features, still slaying in its own way)
  • Other interesting exporters: Sub::Exporter, Exporter. (the classics, the OGs, we respect them fr fr 🫢)

πŸ‘‘ AUTHOR πŸ‘‘

Toby Inkster <tobyink@cpan.org>.


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. so basically, go off, do your thing, just keep the same terms. πŸ’œ


πŸ™ˆ 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.

like, no promises, bestie. it's giving "use at your own vibe." πŸ’… (but also it works, so. 🧚)


perl v5.42.0 Β· 2026-01-17 Β· Exporter::Tiny(3)

and that's the whole page, bestie πŸ’– go forth and export responsibly. mwah. πŸ“βœ¨

πŸ“¦ where this page comes from