RE: Trouble with variable scoping





When I run this, I get an error "Can't localize lexical variable". I
understand that it's because the variable is declared using "my"; what
I don't understand is why, or what I should declare the variable as,
since if I leave out "my" I get an error using "use strict".


Maybe you want..

Use vars qw(@excludedIPAddresses);

Hope this helps...

jwm
.