Just another Perl shrine | |
PerlMonks |
Weird compilation successby perl_is_fun (Initiate) |
on May 25, 2009 at 15:26 UTC ( [id://766054]=perlquestion: print w/replies, xml ) | Need Help?? |
perl_is_fun has asked for the wisdom of the Perl Monks concerning the following question:
Esteemed monks,
I m quite new to perl. I faced a very weird problem today. I have two modules with circular dependencies, Men.pm and Women.pm. Both use Class::Method maker as follows:
Hence compilation of both A and B fails. $perl -wc Men.pm The component 'new' has already been installed in class -->Men<-- as a HASH(0xa102440) (this time a new) at /usr/local/lib/perl5/5.8.6/i86pc-solaris/Class/MethodMaker.pm line 20 BEGIN failed--compilation aborted at Men.pm line 145. But when I import this module in any script, script does not fail to get compiled. Can you please tell me why the scripts which import these modules Men.pm and Women.pm get compiled without errors? Thanks a lot!
Back to
Seekers of Perl Wisdom
|
|