Hi,
how can I get the values of variables, that I had declared in my main routine, in a module? I know I could pass them as parameters to the subroutine, but I would like to know wether there is another (better) solution?
e.g.
use my;
$t="hello";
---my.pm----
...
print $t;
...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.