Elliot Shank wrote:
Show quoted text> Steffen Winkler via RT wrote:
>> you only accept
>>
>> # fill up my namespace with all the English variables
>> use Englisch qw(-no_match_vars);
>>
>> or
>> # uppend to shut up perl critic
>> use Englisch qw($OS_ERROR -no_match_vars);
>>
>> and not
>>
>> use Englisch qw($OS_ERROR);
>
> Yup. Bug.
Whoops. Wrong. Not bug. If you specify arguments to the import other than the match variables, but don't include the "-no_match_vars", the match variables aren't imported into your package, but they are still created in the English package.
In other words, with
use English qw($OS_ERROR);
$English::POSTMATCH exists. You must use
use English qw($OS_ERROR -no_match_vars);
in order to avoid the performance penalty.