in reply to Re^2: Unable to declare local variable with "use strict".
in thread Unable to declare local variable with "use strict".
So, I can not use local with use strict?Sure you can. Note that anyone with a reply suggesting you replace the 'local' with 'my' doesn't understand why you are getting the error.
The problem is the extension of the scope. You do local $var in a certain scope. But the other use is in a different scope. That is the cause of the error. Replacing the local with my doesn't solve that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Unable to declare local variable with "use strict".
by ikegami (Patriarch) on Mar 27, 2010 at 01:50 UTC | |
by Anonymous Monk on Mar 27, 2010 at 16:36 UTC | |
by ikegami (Patriarch) on Mar 27, 2010 at 16:46 UTC |