Exporter::Shiny â shortcut for Exporter::Tiny
| Use Case | Command | Description |
|---|---|---|
| Quick export shortcut | use Exporter::Shiny qw( foo bar ); | Shortcut for use base "Exporter::Tiny"; push our(@EXPORT_OK), qw( foo bar ); |
| Sub::Exporter compatibility | use Exporter::Shiny -setup => { exports => [qw( foo bar )] }; | Longer syntax for compatibility with Sub::Exporter |
use Exporter::Shiny qw( foo bar );
Is a shortcut for:
use base "Exporter::Tiny";
push our(@EXPORT_OK), qw( foo bar );
For compatibility with Sub::Exporter, the following longer syntax is also supported:
use Exporter::Shiny -setup => {
exports => [qw( foo bar )],
};
This is a very small wrapper to simplify using Exporter::Tiny.
It does the following:
It doesn't set up %EXPORT_TAGS or @EXPORT, but there's nothing stopping you doing that yourself.
Please report any bugs to <http://rt.cpan.org/Dist/Display.html?Queue=Exporter-Tiny>.
This module is just a wrapper around Exporter::Tiny, so take a look at Exporter::Tiny::Manual::QuickStart and Exporter::Tiny::Manual::Exporting for further information on what features are available.
Other interesting exporters: Sub::Exporter, Exporter.
Toby Inkster <tobyink AT cpan.org>.
This software is copyright (c) 2014, 2017 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.
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.
Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-16 10:47 @216.73.216.208
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)