mdemoulin has asked for the wisdom of the Perl Monks concerning the following question:

Are there any known issues with Perl6::Export::Attrs and Perl 5.24? I installed Perl 5.24, and now the functions that were exported with no problem now produce the error message "My::Lib does not export: foo" when encountering the line use My::Lib qw{foo};

Thanks for the help!

Replies are listed 'Best First'.
Re: Perl6::Export::Attrs and Perl 5.24
by stevieb (Canon) on Sep 28, 2016 at 18:06 UTC

    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.

      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.