Hi,
I am importing 2 modules OrbixTest.pm (resides in /lib/perl) and NamesTest.pm (resides in /Names/lib/perl) using the line:
#!/usr/bin/perl -I/lib/perl -I/Names/lib/perl
I have discovered that both modules contain a package called TestRun and a function called new in the package that I need to use. The implementation of the functions in the 2 packages are different
The function is called in the OrbixTest.pm cause using:
my $testRun = new TestRun($testLog, $autobuild);
and in NamesTest.pm
my $testRun = new TestRun($testLog);
I have just discovered that everytime either of the above lines are called the function in the package in OrbixTest.pm is being invoked.
I need a way to differentiate which module I want to invoke. I was thinking that I can probably use namespaces to do this how would I go about doing this or how should I do it?
Thanks,
John
I am importing 2 modules OrbixTest.pm (resides in /lib/perl) and NamesTest.pm (resides in /Names/lib/perl) using the line:
#!/usr/bin/perl -I/lib/perl -I/Names/lib/perl
I have discovered that both modules contain a package called TestRun and a function called new in the package that I need to use. The implementation of the functions in the 2 packages are different
The function is called in the OrbixTest.pm cause using:
my $testRun = new TestRun($testLog, $autobuild);
and in NamesTest.pm
my $testRun = new TestRun($testLog);
I have just discovered that everytime either of the above lines are called the function in the package in OrbixTest.pm is being invoked.
I need a way to differentiate which module I want to invoke. I was thinking that I can probably use namespaces to do this how would I go about doing this or how should I do it?
Thanks,
John