in reply to Global variables in Perl
#### our $DEBUG; # don't use ConfigThisJunk qw ( $DEBUG ); print $DEBUG;
our binds any use of the variable within the scope to the actual package, such that your print will try to access the undefined $main::DEBUG instead of $ConfigThisJunk::DEBUG
Cheers Rolf
|
|---|