From 5c9420df616f091d317fda0c0fce38359f736da6 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 10 Jul 2013 17:11:20 -0400 Subject: allow just building the exporter without installing it --- t/lib/Bar.pm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 t/lib/Bar.pm (limited to 't/lib') diff --git a/t/lib/Bar.pm b/t/lib/Bar.pm new file mode 100644 index 0000000..69aadf9 --- /dev/null +++ b/t/lib/Bar.pm @@ -0,0 +1,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; -- cgit v1.2.3-54-g00ecf