Don't use local if you don't understand what it does. Leaving out local makes your code work as you expect. In most cases, it is better to pass values as paramters to a function instead of using and modifying global variables.
Also, it helps you to get better responses if you actually test your code before you post it. You tried to call a subroutine named fun1 but only declared a subroutine func.
In reply to Re: how to acces local varialbe
by Corion
in thread how to acces local varialbe
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |