Exporter::Shiny - shortcut for Exporter::Tiny |
Exporter::Shiny - shortcut for Exporter::Tiny
use Exporter::Shiny qw( foo bar );
Is a shortcut for:
use base "Exporter::Tiny"; push our(@EXPORT_OK), qw( foo bar );
For compatibility with the Sub::Exporter manpage, the following longer syntax is also supported:
use Exporter::Shiny -setup => { exports => [qw( foo bar )], };
This is a very small wrapper to simplify using the Exporter::Tiny manpage.
It does the following:
%INC
;@EXPORT_OK
; and"Exporter::Tiny"
onto your @ISA
.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.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2014 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.
Exporter::Shiny - shortcut for Exporter::Tiny |