Hello,
I have a top level script called foo.pl
I am passing a variable ($version) from the command line to it as one of the arguments to the script foo.pl
foo.pl uses a couple of perl modules. I want to use this $version variable in a sub-routine of one of the perl modules Arithmetic.pm which is declared in foo.pl as
However I don't want to pass this variable from foo.pl as an argument to the sub-routine in Arithmetic.pm
Is it possible to use variables in the top level script in the perl modules without passing it as an argument?
(In my case use $variable declared in foo.pl in the sub-routine present in Arithmetic.pm)
Thanks