Hello Pritesh,
Even though the variable is static, it is still only visible within the block where it was declared. In your example, the variable still exists, but inaccessible from outside the counter subroutine
Hope this helps.
In reply to Re: How to access a variable inside subroutine?
by jeffenstein
in thread How to access a variable inside subroutine?
by pritesh_ugrankar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |