Package Info

perl-Export-Attrs


The Perl 6 'is export(...)' trait as a Perl 5 attribute


Development/Libraries/Perl

NOTE: This module is a fork of Perl6::Export::Attrs created to restore compatibility with Perl6::Export::Attrs version 0.0.3.

Implements a Perl 5 native version of what the Perl 6 symbol export mechanism will look like (with some unavoidable restrictions).

It's very straightforward:

  • If you want a subroutine or package variable to be capable of being

exported (when explicitly requested in the 'use' arguments), you mark it with the ':Export' attribute.

  • If you want a subroutine or package variable to be automatically exported

when the module is used (without specific overriding arguments), you mark it with the ':Export(:DEFAULT)' attribute.

  • If you want a subroutine or package variable to be automatically exported

when the module is used (even if the user specifies overriding arguments), you mark it with the ':Export(:MANDATORY)' attribute.

  • If the subroutine or package variable should also be exported when

particular export groups are requested, you add the names of those export groups to the attribute's argument list.

That's it.


License: Artistic-1.0 or GPL-1.0+
URL: http://search.cpan.org/dist/Export-Attrs/

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.1.0-bp155.2.9 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Export-Attrs
0.1.0-bp154.1.24 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Export-Attrs
0.1.0-bp153.1.12 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Export-Attrs
0.1.0-bp152.3.16 info GA Release 2020-04-16 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Export-Attrs
0.1.0-bp151.3.1 info GA Release 2019-07-16 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Export-Attrs
0.1.0-bp151.2.12 info GA Release 2019-05-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Export-Attrs
0.1.0-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Export-Attrs