I would like to be able to access a hash in the main module as if it was in a submodule. As background, I have a 20,000 line program I am trying to refactor into modules. For the key variables (this is a text editor), I can put "my $textwindow=$main::textwindow" at the top of a subroutine in the module. However, I do not see how to do this with a hash. The problem is that someone put most of the variables in the main module into a hash %lglobal. Therefore I do not want to put "$main::lglobal{xxx}" every time I refer to the variable lglobal{xxx}. This makes the code hard to read.