I am now have 5 pl files handling differet packages developed by myself. Defining they are A.pl, B.pl, C.pl, D.pl, E.pl. and *each file only handle 1 package only*.
As I think it would be quite trouble to require A to E each time I write a new program, so I also make a ALL.pl which content looks like : require "A.pl"; require"B.pl"...require"E.pl"; return 1; After this, I can require "ALL.pl" on each main program and able to call all the functions from A to E. However, in case, A can't call B's function, B can't call C's function. So, I try to require the ALL.pl again inside each package too. Logically, A.pl will require A.pl itself. It works after some simple test, but, my questions are : 1. Would this act cause any bugs for a further long run ? 2. Besides, would it causes a system's non-nessary loading ? ( pls not to cmp with using module =)) 3. Yet, I still don't know how to write my own module, require is the only way I can choose now. Is there anyway can call functions between packages without modifying each package again, when I create more and more packages, but just by modifying the ALL.pl at once?