in reply to Circular dependencies when using the perl syntax checker

Don't execute modules. The error you show will go away if you do
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).

Replies are listed 'Best First'.
Re^2: Circular dependencies when using the perl syntax checker
by ysth (Canon) on Jul 29, 2008 at 03:06 UTC