in reply to Re: Undefined subroutine &abc::abcUtil::PERL_DEBUG
in thread Undefined subroutine &abc::abcUtil::PERL_DEBUG

I updated the code in the 2nd file as follows:
#require "common.pl"; use abc::abcUtil; sub func { abc::abcUtil::check(); }
Basically removed the use of common.pl. Kept the abcUtil file as unchanged. Now it worked. But I can't keep it this way as have to use this common file. Is it some conflict due to the use of 'require "common.pl" ' in both the files?

Replies are listed 'Best First'.
Re^3: Undefined subroutine &abc::abcUtil::PERL_DEBUG
by Anonymous Monk on Aug 20, 2012 at 13:37 UTC

    So what does common.pl do?

      common.pl has some common subroutines that can be used by others. PERL_DEBUG is one of them. I have to use common.pl in both the files. It was only for a test that i tried removing it from one file to see if it works and it did.
        Great!