in reply to What is it I don't understand about perl scoping?
my always creates a new variable. The creation of the variable is done at compile time (and hence, at that time it's "decided" which variable a line of code "sees"); the initialization is done run time.
|
|---|