RE: Trouble with variable scoping
- From: John.Moon@xxxxxxxxxxxxxxxxx (John Moon)
- Date: Thu, 31 Aug 2006 09:36:39 -0400
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
.
- Follow-Ups:
- Re: Trouble with variable scoping
- From: Paul Lalli
- Re: Trouble with variable scoping
- Prev by Date: Re: Trouble with variable scoping
- Next by Date: Re: Trouble with variable scoping
- Previous by thread: RE: Trouble with variable scoping
- Next by thread: Re: Trouble with variable scoping
- Index(es):