in reply to Explanation of warning created when over using "my"
At present, perl does not warn about that sort of situation, and on the whole, it's probably better that it doesn't. So I just have to watch myself...my $variable = "current value"; while ( whatever() ) { ... my $variable = "new value"; # if "my" was just typed by habit here ... } print $variable; # then there's probably a bug when we get here
|
|---|