summaryrefslogtreecommitdiffstats
path: root/lib/circular/require.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/circular/require.pm')
-rw-r--r--lib/circular/require.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/circular/require.pm b/lib/circular/require.pm
index f80c035..881aec7 100644
--- a/lib/circular/require.pm
+++ b/lib/circular/require.pm
@@ -4,6 +4,9 @@ use warnings;
# ABSTRACT: detect circularity in use/require statements
use Package::Stash;
+# XXX would be nice to load this on demand, but "on demand" is within the
+# require override, which causes a mess (on pre-5.14)
+use B;
=head1 SYNOPSIS
@@ -110,7 +113,6 @@ sub _require {
# but we're not in an eval anymore
# fake it up so that this looks the same
if (defined((caller(1))[6])) {
- require B;
my $str = B::perlstring($file);
$ret = $saved_require_hook
? $saved_require_hook->($file)