in reply to Weird compilation success
If A.pm and B.pm (bad choice of name, btw) depend on one another, then when syntax checking A.pm with perl -wc A.pm, the the code in A.pm will be compiled/run twice, because A.pm has already been loaded (indirectly via B.pm) — which can cause all kinds of problems. This doesn't happen when you use either module from a script.
|
|---|