I am writing a project involving 10 to 20 perl scripts calling subroutines that I have organised in modules (.pm files). I have also one .pm file that contains all my global variables. I am not using packages because I don't feel the need for different namespaces here.
Is it the best and more efficient way to do this ?
Especially because each .pl script will start with several "USE Module" statement and the Module.pm file themselves could contain references to others modules.
for instance if a.pl contains "USE module1;" and "USE module2;" and module1.pm contains "USE module2;" will a.pl try to compule module2 twice leading bad performances ?
What is the best way to define global variables without using packages ??
Thx.
U.
Is it the best and more efficient way to do this ?
Especially because each .pl script will start with several "USE Module" statement and the Module.pm file themselves could contain references to others modules.
for instance if a.pl contains "USE module1;" and "USE module2;" and module1.pm contains "USE module2;" will a.pl try to compule module2 twice leading bad performances ?
What is the best way to define global variables without using packages ??
Thx.
U.