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
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.