perl -c -we"use modA"
or
perl -MmodA -cwe1
Treating the module as a script doesn't set %INC, so modA.pm gets compiled and executed twice, once as a script and once as a module (the first time it's used).
In reply to Re: Circular dependencies when using the perl syntax checker
by ikegami
in thread Circular dependencies when using the perl syntax checker
by tomdee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |