summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-01-04 15:44:39 -0600
committerJesse Luehrs <doy@tozt.net>2012-01-04 15:44:39 -0600
commitea1ac96681227f74e585f8aed17f5ac89a7b56fd (patch)
treebfaab7e5229fd7b001f0431faf18b1cc957a5720
parent677465901f2704bbe258ba2000cbcf8e795e130b (diff)
downloadcircular-require-ea1ac96681227f74e585f8aed17f5ac89a7b56fd.tar.gz
circular-require-ea1ac96681227f74e585f8aed17f5ac89a7b56fd.zip
better docs for hide
-rw-r--r--lib/circular/require.pm17
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/circular/require.pm b/lib/circular/require.pm
index f398743..eb1f21d 100644
--- a/lib/circular/require.pm
+++ b/lib/circular/require.pm
@@ -21,12 +21,6 @@ or
perl -M-circular::require foo.pl
-or to hide loaders such as base.pm or parent.pm Any package name(s) can be
-used.
-
- no circular::require hide => [ qw/base parent/ ];
-
-
=head1 DESCRIPTION
Perl by default just ignores cycles in require statements - if Foo.pm does
@@ -41,6 +35,17 @@ load time (C<make_immutable> in L<Moose> classes, for example). This module
generates a warning whenever a module is skipped due to being loaded, if that
module has not finished executing.
+In some situations, other modules might be handling the module loading for
+you - C<use base> and C<Class::Load::load_class>, for instance. To avoid these
+modules showing up as the source of cycles, you can use the C<hide> parameter
+when using this module. For example:
+
+ no circular::require hide => [qw(base parent Class::Load)];
+
+or
+
+ perl -M'-circular::require hide => [qw(base parent Class::Load)];' foo.pl
+
=cut
my %seen;