"scrathpads" or just "pads" are where lexical (my) variables are stored internally. Each function has one for each level of recursion it's been called. It's a kind of array, where each element is one of the function's "my" variables.
| [reply] [d/l] |
| [reply] [d/l] |
Dear Monk,
Sorry, My intention of scratchpad is not that.
I read the following context from a link.
"Lexical variables (those tagged with my) aren't listed in the symbol table at all. Every block and subroutine gets a list of one or more arrays of variables called scratchpads (typically one, but more if the subroutine recurses). Each lexical variable is assigned one slot from a scratchpad; in fact, different types of variables with the same name - $spud and %spud, say - occupy different slots".
In above context I didn't understand about scratchpads.
Can anyone please explain about scrathpads on this context?
| [reply] |
| [reply] |