Hi guys,
Here is my problem : I need a global variable and to use strict at the same time (the program is quite big and I need to debug easily..)
If I get everything:
local: I can get global variables but not use strict
my: declaration in one block /can use strict
our: declaration in one block and 'children blocks'/can use strict (as local but use strict (?))
var: apparently that s what I need cause I want to be able to reach my variables from others packages (a lot of my subroutines are in other packages ().. but maybe that's bad...?)but writing 'use vars' is OK and then if I try to declare 'var $smth;', it doesn't recognize the command...
I have seen this 'var::i' package but I am not sure that's what I need...
Could someone help me?
Thanks a lot!
Here is my problem : I need a global variable and to use strict at the same time (the program is quite big and I need to debug easily..)
If I get everything:
local: I can get global variables but not use strict
my: declaration in one block /can use strict
our: declaration in one block and 'children blocks'/can use strict (as local but use strict (?))
var: apparently that s what I need cause I want to be able to reach my variables from others packages (a lot of my subroutines are in other packages ().. but maybe that's bad...?)but writing 'use vars' is OK and then if I try to declare 'var $smth;', it doesn't recognize the command...
I have seen this 'var::i' package but I am not sure that's what I need...
Could someone help me?
Thanks a lot!