The variables declared with my() are visible only within the scope of the block which names them.
They are not visible outside of this block, not even in routines or blocks that it calls.
local() variables, on the other hand, are visible to routines that are called from the block where they are declared.
Neither is visible after the end of the block at all.
In reply to Re: Difference b/w my and local var?
by boom
in thread Difference b/w my and local var?
by anbutechie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |