Subject: | regression: can't import functions by name |
$ cat Lib.pm
package Lib;
use 5.010001;
use warnings;
use strict;
use utf8;
use Perl6::Export::Attrs;
sub doit :Export {
print "Do it!\n";
}
1;
With Perl6::Export::Attrs-0.0.3 everything works as expected:
$ perl -E 'use Lib; doit()'
Undefined subroutine &main::doit called at -e line 1.
$ perl -E 'use Lib qw(doit); doit()'
Do it!
$ perl -E 'use Lib qw(:ALL); doit()'
Do it!
With Perl6::Export::Attrs-0.0.4 only :ALL works:
$ perl -E 'use Lib; doit()'
Undefined subroutine &main::doit called at -e line 1.
$ perl -E 'use Lib qw(doit); doit()'
Lib does not export: doit
use Lib failed at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
$ perl -E 'use Lib qw(:ALL); doit()'
Do it!