in reply to Re: Circular dependencies when using the perl syntax checker
in thread Circular dependencies when using the perl syntax checker

I had this specific problem with Class::MethodMaker as well. Perhaps because I had my files inside of subdirs (e.g. My::Module in My/Module.pm), Steffen's fix didn't work. I had to take another step, and make sure I had the filename just so:

BEGIN { use strict; use File::Spec; $INC{"My/Module.pm"} ||= File::Spe +c->rel2abs(__FILE__); }

(OK, the "use strict" is just a bit of belt-and-suspenders ;)