I don't want to pass the variable as an argument because this foo.pl is an existing object oriented perl script and uses a lot of modules. The "$variable" will be used in a sub-routine in one of the module which is called from few other modules. If I have to pass the variable as an argument I would need to make changes in a lot of perl modules and the top level script which I would like to avoid as far as possible. I tried $::variable in a small dummy perl program but it does not seem to be working for me.
Regards.