summaryrefslogtreecommitdiffstats
path: root/t/lib/Bar.pm
blob: 69aadf94861d92621cc8564450d406d0422ffdf3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package Bar;
use strict;
use warnings;

use Exporter::Lexical ();

our $imported;

my $import = Exporter::Lexical::build_exporter({
    -exports => [ qw(bar) ],
});

sub import {
    $imported = 1;
    goto $import;
}

sub bar { "BAR" }

1;