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

Welcome to the Monastery, mdemoulin!

Could you please show the relevant code (ie. enough code to reproduce the issue)? Also, did you change the code in any way after the upgrade?

Please remember to post your code within <code></code> tags.

Replies are listed 'Best First'.
Re^2: Perl6::Export::Attrs and Perl 5.24
by mdemoulin (Initiate) on Sep 28, 2016 at 19:16 UTC
    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.
        Thanks. I moved over to Export::Attrs and now all is well. I swear I looked to see if there were any bug reports!