Note that anyone with a reply suggesting you replace the 'local' with 'my' doesn't understand why you are getting the error.
I did just that, and I beg to differ. The solution I recommended uses my and works quite well. While changing to my alone is not enough, it can definitely be part of the solution.
In reply to Re^4: Unable to declare local variable with "use strict".
by ikegami
in thread Unable to declare local variable with "use strict".
by mr_p
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |