Movatterモバイル変換


[0]ホーム

URL:


 / 
Exporter-Tiny-1.006002
River stage four • 138 direct dependents • 5113 total dependents
/Exporter::Tiny

NAME

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

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

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 theinto option; and alternative installers with theinstaller 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 towrite a module that inherits from Exporter::Tiny, then look at:

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

BUGS

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

SEE ALSO

https://exportertiny.github.io/.

Simplified interface to this module:Exporter::Shiny.

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

Other interesting exporters:Sub::Exporter,Exporter.

AUTHOR

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT AND LICENCE

This software is copyright (c) 2013-2014, 2017, 2022-2023 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

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.

Module Install Instructions

To install Exporter::Tiny, copy and paste the appropriate command in to your terminal.

cpanm

cpanm Exporter::Tiny

CPAN shell

perl -MCPAN -e shellinstall Exporter::Tiny

For more information on module installation, please visitthe detailed CPAN module installation guide.

Keyboard Shortcuts

Global
sFocus search bar
?Bring up this help dialog
GitHub
gpGo to pull requests
gigo to github issues (only if github is preferred repository)
POD
gaGo to author
gcGo to changes
giGo to issues
gdGo to dist
grGo to repository/SCM
gsGo to source
gbGo to file browse
Search terms
module: (e.g.module:Plugin)
distribution: (e.g.distribution:Dancer auth)
author: (e.g.author:SONGMU Redis)
version: (e.g.version:1.00)

[8]ページ先頭

©2009-2025 Movatter.jp