in reply to use vars in a require()d file
Luckily, a BEGIN block will fix things:
It's not that the variables are hidden, it's just that Perl doesn't see them in time to avoid the warning, unless you tell the compiler to read the file before it does the warning check.BEGIN { require 'foobarbaz.pl'; }
|
|---|