scribouille
Programmer
Hello,
Including the package strict in all my files in ".pl" and ".pm", I declare global variables in my main perl programm.
But I can't see these variables in the other files in ".pl" or ".pm" whereas I declare these global variable like this :
use vars qw ($var1 $var2 $var3);
I don't understand why. The package vars would have to enable me to use these global variables in files which are inculded in my main perl program.
Thank's for your help
Including the package strict in all my files in ".pl" and ".pm", I declare global variables in my main perl programm.
But I can't see these variables in the other files in ".pl" or ".pm" whereas I declare these global variable like this :
use vars qw ($var1 $var2 $var3);
I don't understand why. The package vars would have to enable me to use these global variables in files which are inculded in my main perl program.
Thank's for your help