Beginner question about "inheritance"

M

mike

Hi,

In a ModifiedCleartool.pm file we have the following:

use base 'IPC::ClearTool';

If I use the module ( ModifiedCleartool.pm) by setting path to it in
my perl script.

use lib qw(/path/to/the/module);

Can I use the ClearTool functions provided.

br,

//mike
 
X

Xho Jingleheimerschmidt

mike said:
Hi,

In a ModifiedCleartool.pm file we have the following:

use base 'IPC::ClearTool';

I'm not familiar with that module in specific.
If I use the module ( ModifiedCleartool.pm) by setting path to it in
my perl script.

use lib qw(/path/to/the/module);

That does not use the module. That just allows perl to find it when and
if you eventually do use it.

use ModifiedCleartool;
Can I use the ClearTool functions provided.

If you do it right you should be able to. I don't know how much
IPC::ClearTool supports inheritance, but at least some of it should work.

Xho
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top