E
Eswar
I need to move couple of functions from one perl file to another. In
this course the global variables that are used in the functions also
moved. I declared the global variables as 'our'. I am updating the
global variable in (1st)one function and using the same in
(Second)another function. when I print the variable in the secong
function, its printing null. But before the moment of the functions,
its printing the updated value int he 1st functions. I dont know why
its not printing after the movement. My friend suggested me to use
declare the variable as $::, then it looks fine. I wanted to know the
difference between our and $:: and why this dint work with our. If
anybody helps, I am very thankful.
this course the global variables that are used in the functions also
moved. I declared the global variables as 'our'. I am updating the
global variable in (1st)one function and using the same in
(Second)another function. when I print the variable in the secong
function, its printing null. But before the moment of the functions,
its printing the updated value int he 1st functions. I dont know why
its not printing after the movement. My friend suggested me to use
declare the variable as $::, then it looks fine. I wanted to know the
difference between our and $:: and why this dint work with our. If
anybody helps, I am very thankful.