in reply to Re: Perl6::Export::Attrs and Perl 5.24
in thread Perl6::Export::Attrs and Perl 5.24
Here is my test code:use v5.16; use utf8; use warnings; package My::Lib; use Perl6::Export::Attrs; sub foo :Export { return 5; } 1;
The error returned is#!/usr/local/bin/perl use strict; use warnings; use My::Lib qw{foo}; my $foo = foo ();
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 | |
by mdemoulin (Initiate) on Sep 30, 2016 at 15:43 UTC |