From ea1ac96681227f74e585f8aed17f5ac89a7b56fd Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 4 Jan 2012 15:44:39 -0600 Subject: better docs for hide --- lib/circular/require.pm | 17 +++++++++++------ 1 file 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 in L 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 and C, for instance. To avoid these +modules showing up as the source of cycles, you can use the C 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; -- cgit v1.2.3