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.
In reply to Re: Wierd compilation success
by almut
in thread Weird compilation success
by perl_is_fun
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |