in reply to Re: Perl6::Export::Attrs and Perl 5.24
in thread Perl6::Export::Attrs and Perl 5.24

The only change I made to my code was to get it to run after upgrading. Here is My/Lib.pl:
use v5.16; use utf8; use warnings; package My::Lib; use Perl6::Export::Attrs; sub foo :Export { return 5; } 1;
Here is my test code:
#!/usr/local/bin/perl use strict; use warnings; use My::Lib qw{foo}; my $foo = foo ();
The error returned is
My::Lib does not export: foo use My::Lib failed at ./t.pl line 7. BEGIN failed--compilation aborted at ./t.pl line 7.

Replies are listed 'Best First'.
Re^3: Perl6::Export::Attrs and Perl 5.24
by beech (Parson) on Sep 28, 2016 at 23:21 UTC
      Thanks. I moved over to Export::Attrs and now all is well. I swear I looked to see if there were any bug reports!