From: Marius Gavrilescu Date: Sat, 1 Apr 2017 17:00:26 +0000 (+0300) Subject: Add a BUGS section X-Git-Tag: 0.003~1 X-Git-Url: http://git.ieval.ro/?p=acme-evil.git;a=commitdiff_plain;h=051a603e55092e999331ca2ad5cbe08bbc2e84ce Add a BUGS section --- 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