NAME
Sub::Spec::Exporter - Flexible and painless exporting for your subs
VERSION
version 0.01
DESCRIPTION
If your module does not have an "import" subroutine, Sub::Spec will install one for you. This exporter is pretty flexible. You can import individual subroutines:
All subroutines which has a spec will be exportable (unless they are set with private=>1).
You can also import Import sets of subroutines via tags. These tags are gathered from the spec's export_tags.
You can import into another name:
You can add extra clauses into a sub:
You can also add extra clauses to all imported subs:
SYNTAX
Inside { ... }, you can leave out the dash (-
) prefix, but it's okay if you still use it.
EXPORT CLAUSES
-as
Export to another name.
-add
Add sub spec clauses.
-remove
Remove sub spec clauses.
-set
Replace sub spec clauses.
AUTHOR
Steven Haryanto <stevenharyanto@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.