in reply to Using Global Variables in Perl

It's tempting to just tell you not to do that - global variables are generally a poor way to program. But as long as you promise to pick up a copy of Perl Best Practices you can do this in your modules:

openFile("someOtherStuff", $main::readMode);

This works because unless your modules declare a package all global variables are in the default "main" package.

-sam