in reply to Re: passing a variable from one subroutine to another
in thread passing a variable from one subroutine to another
local simply hides away the existing value for the duration of the lexical scope. It's still accessable through the symbol table (as a global), but within the scope, including in any subroutines called from the scope, it has a temporarily new value. For more practical information, scope out Seven useful uses of local by a local octopus enthusiast.
There, that ought to protect you from merlyn!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: passing a variable from one subroutine to another
by jerrygarciuh (Curate) on Oct 06, 2001 at 16:20 UTC |