Subject: | shouldn't use Perl6::Export::Attrs for exporting |
Date: | Tue, 14 Jun 2016 12:06:59 +0000 |
To: | "bug-Hash-Map [...] rt.cpan.org" <bug-Hash-Map [...] rt.cpan.org> |
From: | Lukas Mai <Mai [...] jochen-schweizer.de> |
Perl6::Export::Attrs is currently broken: https://rt.cpan.org/Public/Bug/Display.html?id=107627
It's also an unusual choice for exporting functions. It would be better to use Exporter (comes with perl, is never broken (or all of CPAN breaks)):
Instead of
use Perl6::Export::Attrs;
sub hashref_map :Export { ... }
sub hash_map :Export { ... }
write
use base qw(Exporter);
our @EXPORT_OK = qw(hashref_map hash_map);
sub hashref_map { ... }
sub hash_map { ... }
--
Lukas Mai / Software Developer
Jochen Schweizer Technology Solutions GmbH
Rosenheimer Str. 145 e-f, 81671 München
HRB München 203111; Geschäftsführer: Florian Herschke, Prokurist: Saad Daoud