[mplspm]: Visibility Problem(s)

Dave Worden dave.worden at veritas.com
Fri Apr 2 13:44:08 CST 2004


All:

A co-worker of mine wrote up the following problem description and was wondering if there might be any helpful suggestions from this list:

-------------- cut -----------------------------------
Perl Visibility Problem Description

We have an internal application which contains a few dozen modules (.pm's).  
These modules are distributed among approximately 10 directories.

Each module gains visibility to the other modules within the structure via 
the following steps:

1) Get visibility to the directory via 
use lib "./TE_Kernel";

2) Get visibility to the module via 
use File_Cmd_Mgr qw (Create_Files);

3) Invoke the module by calling the subroutine name only:
Create_Files (File_Size => 1024);

Each module imports modules and subroutines from many others.  Modules 
depend on each other, such that they can be termed "co-dependent".   

Recently, we have started seeing problems with visibility.  In the above 
example, Perl can no longer find the subroutine Create_Files.  The workaround 
to date has been to explicitly specify the location of the module, e.g., 

File_Cmd_Mgr::Create_Files (File_Size => 1024);

Is there anything we might be able to do to "help" Perl find the routines in 
the correct modules.  Extending our workaround to require all modules be 
specified explicitly would impact our code readability significantly, so we 
wish to avoid that if possible.  Suggestions on where to look or how to 
proceed would be highly appreciated.
-------------- cut -----------------------------------

Please note that the application in question is typically run with Perl 5.005003 or 5.6.1.
TIA,
Regards,
--djw
**************************************************
David Worden             dworden at veritas.com
VERITAS Software Corp.   651-746-7276 (voice)
2815 Cleveland Ave.
Roseville, MN 55113      Mail Stop: ROS2-4          
**************************************************



--------------------------------------------------
Minneapolis Perl Mongers mailing list

To unsubscribe, send mail to majordomo at pm.org
with "unsubscribe mpls" in the body of the message.



More information about the Mpls-pm mailing list