in reply to Object oriented mess

My money is on faliure to find Client.pm in you're @INC.
Try:
use lib "/path/to/dir/your/module/in/" use Client;



This is not a Signature...

Replies are listed 'Best First'.
Re^2: Object oriented mess
by longliveAJ (Acolyte) on Apr 13, 2005 at 15:22 UTC
    Hey guys, I have got some good pieces of advice here which is also leading to some kind of confusion. The problem resolved a little when I commented out the require ... require lines in Client.pm

    I am going to first heck out the Exporter module.

    But could someone tell me what is the best way to include a global(common file which has carries commonly used subroutines) file in all my packages in perl files. It seems that by using require and use together, is causing this error. Thanks
      You shouldn't want to include a file.

      It's a thinking in perl thing. In php, and some other languages, you include. In perl you "use." It's slightly more complicated than just inlining the file, but has a lot of benefits. I'll try and track down a reference about why you shouldn't want to "include" in perl.

      Okay the reference: How do I include a file?