in reply to glob'ing and variable setting

What do you mean by "auto-exporting"? Do you use Exporter? If so, please show us how. If not, please show us how you export the variable; and also, how you check that the variable was "indeed" exported.

Update: The following works for me. Note, though, that exporting variables is not recommended:

Local.pm:

package Local; use warnings; use strict; use Exporter 'import'; our @EXPORT_OK = qw( $VAR ); our $VAR = 12; __PACKAGE__

script.pl:

#!/usr/bin/perl use warnings; use strict; use Local qw( $VAR ); print "$VAR\n";
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ