Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^2: Undefined subroutine &abc::abcUtil::PERL_DEBUG

by navneet03 (Initiate)
on Aug 20, 2012 at 13:28 UTC ( #988450=note: print w/ replies, xml ) Need Help??

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 ""; use abc::abcUtil; sub func { abc::abcUtil::check(); }
Basically removed the use of 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 "" ' in both the files?

Comment on Re^2: Undefined subroutine &abc::abcUtil::PERL_DEBUG
Download Code
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 do? has some common subroutines that can be used by others. PERL_DEBUG is one of them. I have to use 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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988450]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2015-10-06 18:40 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (158 votes), past polls