openFile("someOtherStuff", $main::readMode);
This works because unless your modules declare a package all global variables are in the default "main" package.
-sam
In reply to Re: Using Global Variables in Perl
by samtregar
in thread Using Global Variables in Perl
by gzayzay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |