2013-09-26 17:14:40 +02:00

16 lines
339 B
Plaintext

This module prototypes the Perl 6 'exported' and 'exportable' traits
in Perl 5.
Instead of messing around with @EXPORT arrays, you just declare which subs
are to be exported (or are exportable on request) as part of those subs.
For example:
sub foo is exported { # by default
...
}
sub bar is exportable { # on request
...
}