Is "use" in perl transitive? -


  package AA; Package BB; Use AA; Package cc; Use BB;   

Do I have to use "AA" in CC, or is it contained?

You can do one module until it has been loaded some time ago. This is the reason why you can use it, know which object type without using the objects created by other modules. For example, you can use an object that you can get back to by some method, however you have never loaded HTTP :: response or it was realized that it was Type of object was there. However, Usage only imports the calling namespace, so those imports will not be displayed in any other package (even if you can call them with full package specification).

You should use any code from your package directly from Usage . That is, use the module for items you make directly.

You should not rely on other packages to load the module for yourself. If someone changes those modules, you will wonder why things got broken and, even then, you rely on the module loading order to ensure that it does all the work.

Comments