Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Perl6::Export::Attrs and Perl 5.24

by mdemoulin (Initiate)
on Sep 28, 2016 at 17:19 UTC ( [id://1172854]=perlquestion: print w/replies, xml ) Need Help??

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1172854]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-03-29 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found