FreeBSD.software
Home/devel/p5-Perl6-Export-Attrs

p5-Perl6-Export-Attrs

0.000006

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

Implements a Perl 5 native version of what the Perl 6 symbol export mechanism will look like. It's very straightforward: * If you want a subroutine 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 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 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 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.

Origin: devel/p5-Perl6-Export-Attrs
Category: devel
Size: 22.9KiB
License: ART10, GPLv1+
Maintainer: perl@FreeBSD.org
Dependencies: 2 packages
Required by: 1 packages
$pkg install p5-Perl6-Export-Attrs

Dependencies (2)

Required By (1 packages)

More in devel