From 051a603e55092e999331ca2ad5cbe08bbc2e84ce Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 1 Apr 2017 20:00:26 +0300 Subject: [PATCH] Add a BUGS section --- lib/evil.pm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/lib/evil.pm b/lib/evil.pm index 08a8fe8..291a23a 100644 --- a/lib/evil.pm +++ b/lib/evil.pm @@ -153,6 +153,33 @@ Synonym for C. =back +=head1 BUGS + +The following does not die: + + # Evil.pm + package Evil; + use evil; + + # A.pm + package A; + use Evil; + + # B.pm + package B; + no evil ':intermediate'; + use Evil; + + # script.pl + #!/usr/bin/perl + use A; + use B; + +Since Evil was loaded by A, B does not load Evil and therefore does +not detect that Evil is... evil. If we loaded B before A in script.pl, +we would get an exception. So order of loading modules matters for +intermediate and lax modes. Strict mode is unaffected by this bug. + =head1 CAVEATS When using intermediate and lax modes, any evil modules loaded before -- 2.39.2