Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Circular dependencies when using the perl syntax checker

by rlucas (Scribe)
on Nov 14, 2009 at 02:22 UTC ( #807088=note: print w/replies, xml ) Need Help??


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 ;)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://807088]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2018-07-22 07:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (452 votes). Check out past polls.

    Notices?