#### 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
In reply to Re: Global variables in Perl
by LanX
in thread Global variables in Perl
by taioba
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |